body { background: #f4f6f9; }

.business-day-bar {
    background: #f0f4ff;
    border: 1px solid #c5d4f7;
}
.business-day-bar .badge { font-weight: 500; }
.login-page { min-height: 100vh; display: flex; align-items: center; }
.admin-sidebar {
    min-height: 100vh;
    background: #1e293b;
}
.admin-sidebar .nav-link {
    color: #adb5bd;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 3px;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.admin-sidebar .nav-link.active {
    color: #fff;
    background: #0d6efd;
}
.admin-sidebar .submenu {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 4px;
    margin-bottom: 6px;
}
.admin-sidebar .submenu .nav-link {
    font-size: 14px;
    padding: 7px 10px;
    color: #ced4da;
}
.admin-sidebar .submenu .nav-link.active {
    background: rgba(13, 110, 253, 0.75);
    color: #fff;
}

/* Admin mobil menü */
.admin-menu-toggle-icon {
    display: inline-block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    vertical-align: middle;
}

.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

body.admin-sidebar-open {
    overflow: hidden;
}

body.admin-sidebar-open .admin-sidebar-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 767.98px) {
    .admin-layout > .row {
        flex-wrap: nowrap;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        width: min(288px, 88vw);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        margin: 0 !important;
        padding-top: 1rem !important;
        padding-bottom: 1.5rem !important;
        flex: 0 0 auto;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: none;
    }

    body.admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    }

    .admin-main {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .staff-topbar .navbar-brand {
        max-width: 42vw;
    }
}

@media (min-width: 768px) {
    .admin-sidebar-backdrop {
        display: none !important;
    }
}

.table-card { transition: transform .15s; cursor: pointer; }
.table-card:hover { transform: translateY(-2px); }
.status-empty { border-left: 4px solid #22c55e; }
.status-occupied { border-left: 4px solid #ef4444; }
.status-payment_waiting { border-left: 4px solid #f59e0b; }
.status-reserved { border-left: 4px solid #3b82f6; }
.status-cleaning { border-left: 4px solid #94a3b8; }

/* Garson masa panosu */
.table-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.table-board-wrap {
    position: relative;
}
.table-board-release {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #b91c1c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.table-board-release:hover {
    background: #fff;
    color: #991b1b;
    transform: scale(1.08);
}
.table-board-release:disabled {
    opacity: 0.6;
    cursor: wait;
}
.table-board-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 14px 10px 10px;
    text-align: center;
    min-height: 148px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: transform .15s, box-shadow .15s;
    position: relative;
}
.table-board-total {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 6px;
    line-height: 1.2;
}
.table-board-meta {
    font-size: .68rem;
    opacity: .92;
    margin-top: 2px;
}
.table-board-alert-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    width: 100%;
}
.table-board-alert-chip {
    font-size: .58rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0,0,0,.25);
    color: #fff;
    line-height: 1.3;
    max-width: 100%;
}
.table-card-busy .table-board-alert-chip {
    background: rgba(255,255,255,.25);
}
.table-board-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    color: inherit;
}
.table-card-empty {
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: #fff;
}
.table-card-busy {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: #fff;
}
.table-board-no {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}
.table-board-area {
    opacity: .85;
    font-size: .7rem;
}
.table-board-status {
    font-size: .65rem;
    opacity: .9;
    margin-top: 2px;
}
.table-board-icons {
    margin-top: 8px;
    min-height: 28px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.table-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
}
.table-icon.blink {
    animation: table-icon-blink 0.9s ease-in-out infinite;
}
.table-board-card.has-pulse {
    animation: card-pulse 1.2s ease-in-out infinite;
}
@keyframes table-icon-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.15); }
}
@keyframes card-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

/* Garson atama chip */
.table-assign-chip {
    display: block;
    cursor: pointer;
}
.table-assign-chip input { display: none; }
.table-assign-chip span {
    display: block;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    background: #fff;
}
.table-assign-chip input:checked + span {
    border-color: #1e40af;
    background: #dbeafe;
    color: #1e3a8a;
}

.pos-product { cursor: pointer; }
.pos-product:hover { background: #e8f4ff; }
.menu-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; }
.menu-page { padding-bottom: 80px; }
.menu-page.menu-view-only { padding-bottom: 1rem; }
.menu-page .product-card-view { cursor: default; }
.menu-cart-offcanvas { border-radius: 16px 16px 0 0; }
.menu-cart-line { background: #fff; }
.menu-cart-line .cart-remove { line-height: 1; padding: 2px 8px; }
.staff-topbar .header-badge-btn { min-width: 2.5rem; }
.staff-topbar .header-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    font-size: .65rem;
    min-width: 1.1rem;
}
.staff-topbar .header-badge:empty { display: none; }
.notification-toast-area { position: fixed; top: 1rem; right: 1rem; z-index: 1080; }
