
.h-flex
{
    width : 100%;
    display : flex;
    flex-direction: row;
}
.v-flex
{
    height : 100%;
    display : flex;
    flex-direction: column;
}
.v-flex-center
{
    height : 100%;
    display : flex;
    flex-direction: column;
    
    justify-content: center;
}
.h-flex-center
{
    width : 100%;
    display : flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/* iPhone-style Keypad */
.keypad-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.keypad-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.keypad-row:last-child {
    margin-bottom: 0;
}

.keypad-button {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border: none;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    color: #000000;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.keypad-button:hover {
    background-color: #f0f0f0;
    transform: scale(0.95);
}

.keypad-button:active {
    background-color: #e0e0e0;
    transform: scale(0.9);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.keypad-button.keypad-empty {
    background-color: transparent;
    box-shadow: none;
    cursor: default;
}

.keypad-button.keypad-empty:hover {
    background-color: transparent;
    transform: none;
}

.keypad-button.keypad-delete {
    background-color: #ff3b30;
    color: white;
    font-size: 22px;
}

.keypad-button.keypad-delete:hover {
    background-color: #e02d20;
}

.keypad-button.keypad-delete:active {
    background-color: #c41e3a;
}

.keypad-button.keypad-ok {
    background-color: #34c759;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.keypad-button.keypad-ok:hover {
    background-color: #2fb550;
}

.keypad-button.keypad-ok:active {
    background-color: #28a745;
}

.keypad-button-pressed {
    background-color: #e0e0e0 !important;
    transform: scale(0.9) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Error popover styling */
.error-popover .popover-body {
    background-color: #ff3b30;
    color: white;
    font-weight: 500;
    border-radius: 6px;
}

.error-popover .popover-arrow::before {
    border-top-color: #ff3b30;
}