/* === FAB Container === */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
}

/* === Ana FAB Butonu Wrapper === */
.fab-main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fab-label {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* === Ana FAB Butonu === */
.fab-main-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #f1c40f;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.5);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                background 0.4s ease,
                box-shadow 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fab-main-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.fab-main-btn:active {
    transform: scale(0.95);
}

.fab-main-btn.rotated {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    border-color: #bdc3c7;
    box-shadow: 0 4px 16px rgba(127, 140, 141, 0.5);
}

.fab-main-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    box-shadow: none;
}

/* === Spinner === */
.fab-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fab-spin 0.8s linear infinite;
}

@keyframes fab-spin {
    to { transform: rotate(360deg); }
}

/* === Menü Öğeleri === */
.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: none;
    border-radius: 28px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                opacity 0.3s ease,
                box-shadow 0.3s ease;
    font-family: 'Roboto', sans-serif;
    animation: fab-item-in 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) backwards;
}

.fab-menu-item:nth-child(1) { animation-delay: 0.1s; }
.fab-menu-item:nth-child(2) { animation-delay: 0.2s; }
.fab-menu-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fab-item-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fab-menu-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.fab-menu-item:active {
    transform: scale(0.96);
}

.fab-menu-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fab-garson {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.fab-hesap {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.fab-item-icon {
    font-size: 20px;
    line-height: 1;
}

.fab-item-label {
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* === Overlay === */
.fab-overlay {
    position: fixed;
    inset: 0;
    z-index: 1059;
    background: rgba(0,0,0,0.3);
    animation: fab-overlay-in 0.35s ease;
}

@keyframes fab-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === Kamera/Masa Popup === */
.garson-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.garson-popup {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: garson-popup-in 0.2s ease;
}

@keyframes garson-popup-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.garson-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #3a5b96;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.garson-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.garson-popup-body {
    padding: 16px;
}

.garson-camera-hint {
    text-align: center;
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* === Manuel Masa Girişi === */
.garson-manual-input {
    display: flex;
    gap: 8px;
}

.garson-table-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #3a5b96;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.garson-table-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.2);
}

.garson-table-submit {
    padding: 10px 20px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}

.garson-table-submit:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.garson-table-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* === Body padding for fixed footer === */
/*body {
    padding-bottom: 65px !important;
}*/
