/* Admin Panel Styles */
:root {
    --admin-primary: #7cda24;
    --admin-dark: #1a1a1a;
    --admin-darker: #0d0d0d;
    --admin-light: #f5f5f5;
    --admin-gray: #333;
    --admin-danger: #ff4444;
    --admin-orange: #ff824e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.admin-body {
    font-family: 'Jockey One', sans-serif;
    background: var(--admin-darker);
    color: var(--admin-light);
    min-height: 100vh;
}

/* Login Section */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: var(--admin-dark);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.login-logo {
    width: 120px;
    margin-bottom: 20px;
}

.login-box h2 {
    color: var(--admin-primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--admin-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--admin-gray);
    border: 2px solid transparent;
    border-radius: 5px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237cda24' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select option {
    background: var(--admin-gray);
    color: var(--admin-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--admin-primary);
}

/* Password toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrapper input {
    flex: 1;
    padding-right: 44px !important;
    width: 100%;
}
.toggle-pw-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.toggle-pw-btn:hover {
    color: var(--admin-primary);
}

/* Allergen Checkboxes */
.allergen-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 5px;
    margin-top: 6px;
}

.allergen-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: var(--admin-gray);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.allergen-checkbox:hover {
    background: #444;
}

.allergen-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--admin-primary);
    cursor: pointer;
}

.allergen-checkbox input[type="checkbox"]:checked + .allergen-code {
    background: var(--admin-primary);
    color: #000;
}

.allergen-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #555;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    transition: all 0.2s;
}

/* Vegan/Vegetarian checkboxes */
.vegan-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    cursor: pointer;
    font-size: 0.95rem;
}

.vegan-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--admin-primary);
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--admin-primary);
    color: var(--admin-dark);
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(124, 218, 36, 0.4);
}

.error-message {
    color: var(--admin-danger);
    margin-top: 15px;
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--admin-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

/* Dashboard Section */
.dashboard-section {
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--admin-dark);
    border-bottom: 2px solid var(--admin-primary);
    gap: 20px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-logo img {
    height: 50px;
}

.admin-logo span {
    font-size: 1.4rem;
    color: var(--admin-primary);
}

.admin-nav {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.nav-btn {
    padding: 14px 24px;
    min-height: 44px;
    background: transparent;
    border: 2px solid var(--admin-gray);
    color: var(--admin-light);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.nav-btn.active {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: var(--admin-dark);
}

.btn-logout {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--admin-danger);
    color: var(--admin-danger);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: var(--admin-danger);
    color: white;
}

/* User Bar - inside header */
.admin-user-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.user-display {
    color: var(--admin-light);
    font-size: 0.9rem;
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--admin-dark);
    border: 2px solid var(--admin-gray);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.user-dropdown-menu.active {
    display: block;
}

.user-dropdown-menu button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.user-dropdown-menu button:hover {
    background: var(--admin-gray);
}

.user-dropdown-menu button:first-child {
    border-bottom: 1px solid var(--admin-gray);
}

/* Nav link buttons (for external pages) */
.nav-btn.nav-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.admin-main {
    padding: 15px 20px;
}

.admin-section {
    display: none !important;
}

.admin-section.active {
    display: block !important;
}

/* Reservations section needs flex layout when active */
#reservations-section.active {
    display: flex !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    color: var(--admin-primary);
    font-size: 1.2rem;
}

.section-actions {
    display: flex;
    gap: 15px;
}

.btn-action {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--admin-primary);
    color: var(--admin-primary);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-action:hover {
    background: var(--admin-primary);
    color: var(--admin-dark);
}

.btn-action.btn-secondary {
    border-color: var(--admin-orange);
    color: var(--admin-orange);
}

.btn-action.btn-secondary:hover {
    background: var(--admin-orange);
    color: var(--admin-dark);
}

.btn-save {
    padding: 12px 24px;
    background: var(--admin-primary);
    border: none;
    color: var(--admin-dark);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    box-shadow: 0 5px 20px rgba(124, 218, 36, 0.4);
    transform: translateY(-2px);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cat-tab-wrapper {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.cat-tab {
    padding: 12px 25px;
    background: var(--admin-gray);
    border: none;
    color: var(--admin-light);
    border-radius: 5px 0 0 5px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-delete-btn {
    padding: 0 10px;
    background: var(--admin-gray);
    border: none;
    border-left: 1px solid rgba(255,255,255,0.1);
    color: #888;
    border-radius: 0 5px 5px 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.cat-delete-btn:hover {
    background: var(--admin-danger);
    color: white;
}

.cat-tab:hover {
    background: #444;
}

.cat-tab-wrapper.active .cat-tab,
.cat-tab.active {
    background: var(--admin-primary);
    color: var(--admin-dark);
}

.cat-tab-wrapper.active .cat-delete-btn {
    background: var(--admin-primary);
    border-left-color: rgba(0,0,0,0.2);
    color: var(--admin-dark);
}

.cat-tab-wrapper.active .cat-delete-btn:hover {
    background: var(--admin-danger);
    color: white;
}

/* Menu Items Container */
.menu-items-container {
    background: var(--admin-dark);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.menu-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--admin-gray);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.menu-item-card:hover {
    transform: translateX(5px);
}

.menu-item-card:last-child {
    margin-bottom: 0;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 1.1rem;
    color: var(--admin-light);
    margin-bottom: 5px;
}

.item-price {
    color: var(--admin-orange);
    font-size: 1rem;
}

.item-description {
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-edit {
    background: var(--admin-primary);
    color: var(--admin-dark);
}

.btn-edit:hover {
    box-shadow: 0 3px 10px rgba(124, 218, 36, 0.4);
}

.btn-delete {
    background: var(--admin-danger);
    color: white;
}

.btn-delete:hover {
    box-shadow: 0 3px 10px rgba(255, 68, 68, 0.4);
}

/* Category Note */
.category-note-editor {
    background: var(--admin-dark);
    padding: 20px;
    border-radius: 10px;
}

.category-note-editor label {
    display: block;
    margin-bottom: 10px;
    color: var(--admin-light);
}

.category-note-editor input {
    width: 100%;
    padding: 12px 15px;
    background: var(--admin-gray);
    border: 2px solid transparent;
    border-radius: 5px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 1rem;
}

.category-note-editor input:focus {
    outline: none;
    border-color: var(--admin-primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--admin-dark);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 75vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-form-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    margin-right: -10px;
}

.modal-form-content::-webkit-scrollbar {
    width: 6px;
}

.modal-form-content::-webkit-scrollbar-track {
    background: var(--admin-gray);
    border-radius: 3px;
}

.modal-form-content::-webkit-scrollbar-thumb {
    background: var(--admin-primary);
    border-radius: 3px;
}

/* Compact form styling for modals */
.modal-form-content .form-group {
    margin-bottom: 12px;
}

.modal-form-content .form-group label {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.modal-form-content .form-group input,
.modal-form-content .form-group textarea,
.modal-form-content .form-group select {
    padding: 8px 12px;
}

.modal-form-content textarea {
    resize: none;
}

/* =====================================================
   EDIT ITEM MODAL - FIXED 75% HEIGHT WITH SCROLLABLE CONTENT
   ===================================================== */
#edit-modal .modal-content {
    max-height: 75vh !important;
    height: 75vh;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#edit-modal .modal-content h3 {
    flex-shrink: 0;
    margin-bottom: 15px;
}

#edit-modal #edit-item-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#edit-modal .modal-form-content {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding-right: 10px;
    min-height: 0;
}

#edit-modal .modal-actions {
    flex-shrink: 0;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--admin-gray);
    background: var(--admin-dark);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--admin-light);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--admin-danger);
}

.modal-content h3 {
    color: var(--admin-primary);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--admin-gray);
    flex-shrink: 0;
}

.btn-cancel {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #666;
    color: #888;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    border-color: var(--admin-danger);
    color: var(--admin-danger);
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 60px;
    background: var(--admin-dark);
    border-radius: 10px;
}

.coming-soon p {
    font-size: 1.2rem;
    color: #888;
}

/* Reservations Info */
.reservations-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--admin-dark);
    border-radius: 10px;
    padding: 25px;
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.info-card h3 {
    color: var(--admin-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--admin-gray);
    padding-bottom: 10px;
}

.info-card p {
    color: #ccc;
    line-height: 1.6;
}

.table-config,
.hours-config {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--admin-gray);
    border-radius: 5px;
    color: #ccc;
}

.config-row.total {
    background: var(--admin-primary);
    color: var(--admin-dark);
    font-weight: bold;
    margin-top: 10px;
}

.config-row.closed {
    opacity: 0.5;
}

.config-row.closed span:last-child {
    color: var(--admin-danger);
}

@media (max-width: 768px) {
    .reservations-info {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   TABLE OCCUPANCY DASHBOARD - PERFECT ONE-PAGE LAYOUT
   ===================================================== */

/* Make reservations section fit perfectly on one page */
#reservations-section {
    flex-direction: column;
    height: calc(100vh - 120px);
    overflow: hidden;
    gap: 10px;
    padding: 15px;
}

.date-picker {
    padding: 12px 45px 12px 15px;
    background: var(--admin-gray);
    border: 2px solid #555;
    border-radius: 8px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

/* Calendar icon styling */
.date-picker::-webkit-calendar-picker-indicator {
    background: transparent;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

/* Date picker wrapper for custom icon */
.date-picker-wrapper {
    position: relative;
    display: inline-block;
}

.date-picker-wrapper::after {
    content: '📅';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    transition: transform 0.2s;
}

.date-picker-wrapper:hover::after {
    transform: translateY(-50%) scale(1.2);
}

.date-picker:hover {
    border-color: var(--admin-primary);
    background: var(--admin-card);
}

.date-picker:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 10px rgba(124, 218, 36, 0.3);
}

/* Status Bar - Compact */
.occupancy-status-bar {
    display: flex;
    gap: 25px;
    padding: 10px 16px;
    background: var(--admin-dark);
    border-radius: 6px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-label {
    color: #888;
    font-size: 0.9rem;
}

.status-value {
    color: var(--admin-light);
    font-size: 1.1rem;
    font-weight: bold;
}

.status-value.open {
    color: var(--admin-primary);
}

.status-value.closed {
    color: var(--admin-danger);
}

.status-value.highlight {
    color: var(--admin-primary);
    font-size: 1.5rem;
}

.status-value.highlight.low {
    color: var(--admin-orange);
}

.status-value.highlight.full {
    color: var(--admin-danger);
}

/* Time Selector - Compact */
.time-selector {
    background: var(--admin-dark);
    border-radius: 6px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.time-selector label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.time-buttons {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.time-btn {
    padding: 12px 0;
    min-height: 44px;
    background: var(--admin-gray);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    text-align: center;
    margin: 0 2px;
}

.time-btn:hover {
    background: #444;
}

.time-btn.active {
    background: var(--admin-primary);
    color: var(--admin-dark);
}

.closed-message {
    color: var(--admin-danger);
    font-style: italic;
}

/* Table Grid - Full Width Distribution */
.table-occupancy-grid {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.table-section {
    background: var(--admin-dark);
    border-radius: 6px;
    padding: 12px 15px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

/* Group 2er and 6er tables vertically */
.table-section-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.table-section h4 {
    color: var(--admin-primary);
    margin-bottom: 8px;
    font-size: 0.75rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tables-grid {
    display: grid;
    gap: 8px;
    justify-content: start;
}

.tables-grid.tables-4 {
    grid-template-columns: repeat(6, 120px);
}

.tables-grid.tables-2 {
    grid-template-columns: 120px;
}

.tables-grid.tables-6 {
    grid-template-columns: 120px;
}

.tables-grid.tables-lounge {
    grid-template-columns: repeat(4, 120px);
    justify-self: start;
}

.table-box {
    background: var(--admin-gray);
    border: 2px solid var(--admin-primary);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 120px;
    min-height: 130px;
    box-sizing: border-box;
    gap: 4px;
}

.table-box:hover {
    transform: scale(1.05);
}

.table-box.available {
    border-color: var(--admin-primary);
    background: rgba(124, 218, 36, 0.1);
}

.table-box.reserved {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.2);
}

.table-box.occupied {
    border-color: var(--admin-danger);
    background: rgba(255, 68, 68, 0.2);
}

.table-box.walkin {
    border-color: #f5c842;
    background: rgba(245, 200, 66, 0.25);
}

.table-box.walkin .table-guest {
    color: #f5c842;
}

.table-box.reserved .table-guest {
    color: #4a90d9;
}

/* Make available tables more obviously clickable */
.table-box.available {
    cursor: pointer;
}

.table-box.available:hover {
    border-color: #9ef04a;
    background: rgba(124, 218, 36, 0.3);
    transform: scale(1.05);
}

/* Available tables show green "Frei" text */
.table-box.available .table-guest {
    color: var(--admin-primary);
    opacity: 0.7;
}

.table-box.available:hover .table-guest {
    opacity: 1;
}

.table-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--admin-light);
    line-height: 1;
}

.table-seats {
    font-size: 0.8rem;
    color: #888;
    line-height: 1;
}

.table-guest {
    font-size: 0.9rem;
    color: var(--admin-orange);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    font-weight: 600;
    max-width: 105px;
    padding: 2px 0;
}

.closed-tables {
    color: #666;
    text-align: center;
    padding: 20px;
}

/* Legend - Compact Inline */
.occupancy-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 6px 16px;
    background: var(--admin-dark);
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.7rem;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 2px solid;
}

.legend-color.available {
    border-color: var(--admin-primary);
    background: rgba(124, 218, 36, 0.1);
}

.legend-color.reserved {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.2);
}

.legend-color.occupied {
    border-color: var(--admin-danger);
    background: rgba(255, 68, 68, 0.2);
}

.legend-color.walkin {
    border-color: #f5c842;
    background: rgba(245, 200, 66, 0.25);
}

/* ============================================
   RESERVATIONS SECTION - NEW LAYOUT
   ============================================ */

/* Top Bar - Date, Status, Walk-In */
.reservations-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--admin-dark);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    gap: 15px;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar-legend {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--admin-light);
}

.top-bar-legend .legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid;
}

.top-bar-legend .legend-color.available {
    background: transparent;
    border-color: #666;
}

.top-bar-legend .legend-color.reserved {
    background: transparent;
    border-color: #2196F3;
}

.top-bar-legend .legend-color.walkin {
    background: transparent;
    border-color: var(--admin-primary);
}

.top-bar-legend .legend-color.occupied {
    background: transparent;
    border-color: var(--admin-danger);
}

/* Search field for reservation codes */
.search-code-input {
    padding: 5px 10px;
    background: var(--admin-gray);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 0.8rem;
    width: 100px;
}

.search-code-input:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.search-code-input::placeholder {
    color: #666;
    font-size: 0.75rem;
}

.btn-search {
    padding: 5px 10px;
    background: var(--admin-primary);
    border: none;
    border-radius: 4px;
    color: var(--admin-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-search:hover {
    background: #9ef04a;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-display {
    color: var(--admin-light);
    font-weight: bold;
    font-size: 1.1rem;
}

.day-status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    background: var(--admin-primary);
    color: var(--admin-dark);
}

.day-status-badge.closed {
    background: var(--admin-danger);
    color: white;
}

.free-seats-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    background: rgba(124, 218, 36, 0.2);
    color: var(--admin-primary);
    font-weight: bold;
}

.walkin-label {
    color: #888;
    font-size: 0.8rem;
}

.top-bar-right select,
.top-bar-right input {
    padding: 6px 10px;
    background: var(--admin-gray);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 0.85rem;
}

.top-bar-right select#walkin-table {
    width: 130px;
}

.top-bar-right select#walkin-guests {
    width: 60px;
}

.top-bar-right input {
    width: 120px;
}

.btn-walkin {
    padding: 6px 15px;
    background: var(--admin-primary);
    border: none;
    border-radius: 4px;
    color: var(--admin-dark);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-walkin:hover {
    background: #9ef04a;
}

/* Time Selector Compact */
.time-selector-compact {
    background: var(--admin-dark);
    border-radius: 6px;
    padding: 8px 15px;
    margin-bottom: 10px;
}

/* Main Content - 50/50 Split */
.reservations-main {
    display: flex;
    gap: 15px;
    flex: 1;
    min-height: 0;
}

/* Left: Tables - flexible width */
.reservations-tables {
    flex: 1.2;
    min-width: 0;
    background: var(--admin-dark);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
}

.tables-container {
    display: flex;
    gap: 20px;
    flex: 1;
    flex-wrap: nowrap;
}

.table-section-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    flex-shrink: 0;
}

.table-section-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 140px;
    flex-shrink: 0;
}

.reservations-tables .table-section {
    background: transparent;
    padding: 0;
    width: 100%;
    align-items: flex-start;
}

.reservations-tables .table-section h4 {
    margin-bottom: 6px;
    font-size: 0.7rem;
    text-align: left;
}

.reservations-tables .occupancy-legend {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #333;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reservations-tables .legend-item {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Right: Bookings List */
.reservations-bookings {
    flex: 0.8;
    min-width: 320px;
    background: var(--admin-dark);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bookings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.bookings-header h3 {
    color: var(--admin-primary);
    font-size: 1rem;
    margin: 0;
}

.btn-print {
    padding: 5px 12px;
    background: var(--admin-gray);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-print:hover {
    background: #444;
}

.bookings-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--admin-gray);
    border-radius: 6px;
    border-left: 3px solid #4a90d9;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.booking-name {
    color: var(--admin-light);
    font-weight: bold;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-details {
    color: #888;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-time {
    color: var(--admin-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.booking-guests {
    background: var(--admin-primary);
    color: var(--admin-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    white-space: nowrap;
}

.no-reservations {
    color: #666;
    text-align: center;
    padding: 30px;
    font-style: italic;
}

/* Walk-in items in list */
.booking-item.walkin {
    border-left-color: #f5c842;
}

.walkin-badge {
    background: #f5c842;
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 5px;
}

.res-badge {
    background: var(--admin-orange);
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 5px;
}

.confirmation-code-badge {
    background: var(--admin-primary);
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 5px;
    font-family: monospace;
}

.confirmation-code-display {
    background: rgba(124, 218, 36, 0.15) !important;
    border: 2px solid var(--admin-primary) !important;
    color: var(--admin-primary) !important;
    font-family: monospace;
    font-size: 1.1rem !important;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}

/* Table tile yellow blink animation */
@keyframes blinkYellow {
    0%, 100% {
        box-shadow: 0 0 0 0 transparent;
        border-color: var(--admin-primary);
    }
    50% {
        box-shadow: 0 0 20px 5px #f5c842;
        border-color: #f5c842;
        background: rgba(245, 200, 66, 0.3);
    }
}

.table-box.blink-yellow {
    animation: blinkYellow 0.3s ease-in-out 6;
}

/* Search filter active indicator */
.search-filter-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 200, 66, 0.2);
    border: 1px solid #f5c842;
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 10px;
    color: #f5c842;
    font-size: 0.85rem;
}

.btn-clear-filter {
    background: transparent;
    border: 1px solid #f5c842;
    color: #f5c842;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-clear-filter:hover {
    background: #f5c842;
    color: #1a1a1a;
}

.booking-times {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: right;
    min-width: 70px;
}

.time-main {
    color: var(--admin-primary);
    font-weight: bold;
    font-size: 0.95rem;
}

.time-booked {
    color: #666;
    font-size: 0.6rem;
    white-space: nowrap;
}

/* Quick Actions - Compact */
.quick-actions {
    background: var(--admin-dark);
    border-radius: 6px;
    padding: 10px 16px;
    flex-shrink: 0;
}

.quick-actions h4 {
    color: var(--admin-primary);
    margin-bottom: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.walkin-form {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.walkin-form select,
.walkin-form input {
    padding: 8px 10px;
    background: var(--admin-gray);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 0.85rem;
    flex: 1;
}

.walkin-form select {
    min-width: 140px;
}

.walkin-form input {
    min-width: 100px;
}

.walkin-form .btn-save {
    padding: 8px 16px;
    white-space: nowrap;
}

.walkin-form select:focus,
.walkin-form input:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.walkin-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237cda24' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

@media (max-width: 900px) {
    .table-occupancy-grid {
        grid-template-columns: 1fr;
    }

    .tables-grid.tables-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .occupancy-status-bar {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .tables-grid.tables-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .walkin-form {
        flex-direction: column;
    }

    .walkin-form select,
    .walkin-form input {
        width: 100%;
    }
}

/* Settings */
.settings-content {
    background: var(--admin-dark);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
}

.settings-content h3 {
    color: var(--admin-primary);
    margin-bottom: 25px;
}

/* Toast Notifications - Top Right (doesn't block workflow) */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    transform: translateX(120%);
    padding: 15px 25px;
    background: var(--admin-dark);
    color: var(--admin-light);
    border: 2px solid var(--admin-primary);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
}

.toast::before {
    content: '✓';
    font-size: 1.2rem;
    color: var(--admin-primary);
    flex-shrink: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    border-color: var(--admin-danger);
}

.toast.error::before {
    content: '✗';
    color: var(--admin-danger);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section-actions {
        flex-direction: column;
        width: 100%;
    }

    .section-actions button {
        width: 100%;
    }

    .menu-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .item-actions {
        width: 100%;
    }

    .item-actions button {
        flex: 1;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}

/* =====================================================
   RESERVATIONS LIST STYLES
   ===================================================== */

.reservations-section {
    background: var(--admin-dark);
    padding: 10px 16px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.reservations-section h4 {
    margin-bottom: 6px;
    color: var(--admin-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.no-reservations {
    color: #666;
    text-align: center;
    padding: 20px;
}

.reservation-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--admin-card);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--admin-primary);
}

.res-time {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--admin-primary);
    min-width: 45px;
}

.res-details {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.res-details strong {
    color: var(--admin-light);
    font-size: 0.8rem;
}

.res-details span {
    color: #888;
    font-size: 0.75rem;
}

.res-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.res-status.status-confirmed {
    background: rgba(124, 218, 36, 0.2);
    color: var(--admin-primary);
}

.res-status.status-cancelled {
    background: rgba(255, 68, 68, 0.2);
    color: var(--admin-danger);
}

/* Table Free Button */
.table-action {
    margin-top: auto;
}

.btn-free {
    padding: 10px 16px;
    min-height: 38px;
    font-size: 0.85rem;
    background: var(--admin-primary);
    color: var(--admin-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    max-width: 100px;
}

.btn-free:hover {
    background: #8fe646;
}

/* Walk-in form improvements */
.walkin-form select {
    min-width: 150px;
}

/* Reservations Header with Print Button */
.reservations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.reservations-header h4 {
    margin: 0;
    color: var(--admin-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-print {
    padding: 4px 10px;
    background: var(--admin-card);
    color: var(--admin-light);
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.btn-print:hover {
    background: var(--admin-primary);
    color: var(--admin-dark);
    border-color: var(--admin-primary);
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    #print-area, #print-area * {
        visibility: visible;
    }

    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
        color: black !important;
        padding: 20px;
    }

    .print-header {
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
    }

    .print-header h1 {
        font-size: 24px;
        margin: 0 0 5px 0;
    }

    .print-header .print-date {
        font-size: 18px;
        font-weight: bold;
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #000;
        padding: 8px 12px;
        text-align: left;
    }

    .print-table th {
        background: #eee;
        font-weight: bold;
    }

    .print-table tr:nth-child(even) {
        background: #f9f9f9;
    }

    .print-footer {
        margin-top: 30px;
        text-align: center;
        font-size: 12px;
        color: #666;
    }

    .no-print {
        display: none !important;
    }
}

/* =====================================================
   REPORTS SECTION STYLES
   ===================================================== */

.report-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--admin-dark);
    border-radius: 10px;
}

.period-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 10px 20px;
    background: var(--admin-card);
    color: var(--admin-light);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.period-btn:hover {
    border-color: var(--admin-primary);
}

.period-btn.active {
    background: var(--admin-primary);
    color: var(--admin-dark);
    font-weight: bold;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-range label {
    color: var(--admin-light);
}

.date-range input[type="date"] {
    padding: 10px;
    background: var(--admin-card);
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--admin-light);
    font-family: inherit;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--admin-dark);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--admin-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Report Table */
.report-table-container {
    background: var(--admin-dark);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.report-table-container h3 {
    margin-bottom: 15px;
    color: var(--admin-primary);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.report-table th {
    background: var(--admin-card);
    color: var(--admin-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.report-table tr:hover {
    background: rgba(124, 218, 36, 0.05);
}

.report-table .status-confirmed {
    color: var(--admin-primary);
}

.report-table .status-cancelled {
    color: var(--admin-danger);
}

.report-table .status-completed {
    color: #888;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 40px;
}

/* Busiest Times Chart */
.busiest-times {
    background: var(--admin-dark);
    padding: 20px;
    border-radius: 10px;
}

.busiest-times h3 {
    margin-bottom: 15px;
    color: var(--admin-primary);
}

.time-chart {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-bar {
    flex: 1;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-bar-fill {
    width: 100%;
    background: var(--admin-primary);
    border-radius: 4px 4px 0 0;
    min-height: 5px;
    transition: height 0.3s;
}

.time-bar-label {
    padding: 8px 0;
    color: #888;
    font-size: 0.8rem;
}

.time-bar-count {
    color: var(--admin-light);
    font-weight: bold;
    margin-top: 5px;
}

/* =====================================================
   WALK-IN MODAL STYLES
   ===================================================== */

.walkin-modal-content {
    max-width: 400px;
    text-align: center;
}

.walkin-modal-content h3 {
    color: var(--admin-primary);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.table-display {
    background: var(--admin-gray);
    border: 3px solid var(--admin-primary);
    border-radius: 10px;
    padding: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--admin-light);
}

.guest-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.counter-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--admin-primary);
    background: transparent;
    color: var(--admin-primary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.counter-btn:hover {
    background: var(--admin-primary);
    color: var(--admin-dark);
}

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

.guest-counter input {
    width: 80px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    background: transparent;
    border: none;
    color: var(--admin-light);
}

.guest-counter input:focus {
    outline: none;
}

.walkin-modal-content .form-group {
    margin-bottom: 25px;
}

.walkin-modal-content .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.walkin-modal-content .modal-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.walkin-modal-content .modal-actions button {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
}

/* =====================================================
   RESERVATION EDIT MODAL STYLES
   ===================================================== */

.reservation-modal-content {
    max-width: 450px;
}

.reservation-modal-content h3 {
    color: var(--admin-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.reservation-modal-content .form-group {
    margin-bottom: 15px;
}

.reservation-modal-content .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reservation-modal-content .form-group input,
.reservation-modal-content .form-group select,
.reservation-modal-content .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--admin-gray);
    border: 2px solid #444;
    border-radius: 6px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 0.95rem;
}

.reservation-modal-content .form-group input:focus,
.reservation-modal-content .form-group select:focus,
.reservation-modal-content .form-group textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.reservation-modal-content .form-row {
    display: flex;
    gap: 15px;
}

.reservation-modal-content .form-row .form-group {
    flex: 1;
}

.reservation-modal-content .form-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.reservation-modal-content .form-actions button {
    flex: 1;
    padding: 12px;
    font-size: 0.95rem;
}

.table-display-field {
    background: var(--admin-darker) !important;
    color: var(--admin-primary) !important;
    font-weight: bold;
    cursor: default;
}

.btn-danger {
    background: var(--admin-danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-danger:hover {
    background: #ff6666;
}

/* =====================================================
   HELP SECTION STYLES
   ===================================================== */

.help-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.help-card {
    background: var(--admin-dark);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
}

.help-card h3 {
    color: var(--admin-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.help-legend {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.help-legend-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.legend-box {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 3px solid;
    flex-shrink: 0;
}

.legend-box.available {
    border-color: var(--admin-primary);
    background: rgba(124, 218, 36, 0.1);
}

.legend-box.reserved {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.2);
}

.legend-box.walkin {
    border-color: #f5c842;
    background: rgba(245, 200, 66, 0.25);
}

.legend-box.occupied {
    border-color: var(--admin-danger);
    background: rgba(255, 68, 68, 0.2);
}

.help-legend-item strong {
    color: var(--admin-light);
    display: block;
    margin-bottom: 5px;
}

.help-legend-item p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.help-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.help-steps li {
    counter-increment: step-counter;
    padding: 12px 0 12px 45px;
    position: relative;
    color: var(--admin-light);
    border-bottom: 1px solid #333;
}

.help-steps li:last-child {
    border-bottom: none;
}

.help-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    background: var(--admin-primary);
    color: var(--admin-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.help-tip {
    background: rgba(124, 218, 36, 0.1);
    border: 1px solid var(--admin-primary);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 15px;
    color: var(--admin-light);
    font-size: 0.9rem;
}

.help-table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

.help-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    color: #aaa;
    font-size: 0.9rem;
}

.help-table td:first-child {
    color: var(--admin-light);
    width: 40%;
}

.help-table code {
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--admin-primary);
}

.help-card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 10px;
}

.help-card ul {
    color: #aaa;
    padding-left: 20px;
    margin: 10px 0;
}

.help-card ul li {
    padding: 5px 0;
}

/* Highlight card for important features */
.help-card.highlight-card {
    border: 2px solid var(--admin-primary);
    background: rgba(124, 218, 36, 0.05);
}

.help-test-section {
    margin-top: 20px;
    text-align: center;
}

.btn-test-sound {
    padding: 15px 30px;
    background: var(--admin-danger);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    animation: pulse-glow 2s infinite;
}

.btn-test-sound:hover {
    background: #ff6666;
    transform: scale(1.05);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
    }
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

/* Large Tablet / Small Desktop - 1280px and below */
@media screen and (max-width: 1280px) {
    .reservations-main {
        gap: 12px;
    }

    .table-box {
        width: 100px;
        min-height: 110px;
        padding: 10px 8px;
    }

    .tables-grid.tables-4 {
        grid-template-columns: repeat(6, 100px);
    }

    .tables-grid.tables-lounge {
        grid-template-columns: repeat(4, 100px);
    }

    .table-number {
        font-size: 1.3rem;
    }

    .table-guest {
        font-size: 0.8rem;
        max-width: 85px;
    }

    .reservations-bookings {
        min-width: 280px;
    }
}

/* Tablet Landscape - 1100px and below */
@media screen and (max-width: 1100px) {
    /* Stack tables and bookings vertically */
    .reservations-main {
        flex-direction: column;
        gap: 15px;
    }

    .reservations-tables {
        flex: none;
        max-height: none;
        overflow-y: visible;
    }

    .reservations-bookings {
        flex: none;
        min-width: 100%;
        max-height: 35vh;
    }

    /* Reorganize table layout for horizontal scrolling */
    .tables-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .table-box {
        width: 90px;
        min-height: 100px;
    }

    .tables-grid.tables-4 {
        grid-template-columns: repeat(3, 90px);
    }

    .tables-grid.tables-lounge {
        grid-template-columns: repeat(2, 90px);
    }

    /* Top bar improvements */
    .reservations-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .top-bar-right select,
    .top-bar-right input {
        flex: 1;
        min-width: 100px;
    }
}

/* Tablet - 1024px and below */
@media screen and (max-width: 1024px) {
    .admin-header {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }

    .admin-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    /* Reservations section height adjustment for tablet */
    #reservations-section {
        height: auto;
        min-height: calc(100vh - 120px);
    }

    /* Time selector improvements */
    .time-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .time-buttons {
        flex-wrap: wrap;
        gap: 4px;
    }

    .time-btn {
        flex: 0 0 auto;
        min-width: 50px;
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .table-box {
        padding: 10px;
        width: auto;
        min-width: 70px;
    }

    /* Booking list improvements */
    .booking-item {
        grid-template-columns: 1fr auto auto;
        gap: 6px;
        padding: 8px 10px;
    }

    .booking-noshow {
        display: none;
    }

    .booking-times {
        min-width: 60px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-controls {
        flex-direction: column;
    }

    .period-buttons {
        width: 100%;
        justify-content: center;
    }

    .date-range {
        width: 100%;
        justify-content: center;
    }

    /* Popout modal adjustments */
    .popout-modal-content {
        width: 95%;
        height: 95%;
    }

    .popout-list .booking-item {
        grid-template-columns: 1fr auto auto;
    }
}

/* Mobile - 768px and below */
@media screen and (max-width: 768px) {
    .admin-header {
        padding: 10px 15px;
        position: relative;
    }

    .admin-logo {
        width: 100%;
        justify-content: center;
    }

    .admin-logo span {
        font-size: 1.2rem;
    }

    .admin-logo img {
        width: 35px;
        height: 35px;
    }

    .admin-user-bar {
        padding: 6px 15px;
    }

    .admin-nav {
        gap: 5px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }

    .admin-main {
        padding: 10px;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .section-actions {
        gap: 8px;
    }

    .btn-action,
    .btn-save,
    .btn-secondary {
        padding: 10px 15px;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
    }

    /* Reservations section mobile layout */
    #reservations-section {
        padding: 10px;
        gap: 8px;
    }

    .reservations-top-bar {
        padding: 10px;
    }

    .top-bar-left {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .date-picker-wrapper {
        width: 100%;
    }

    .date-picker {
        width: 100%;
    }

    .status-item {
        justify-content: center;
    }

    .top-bar-right {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .top-bar-right select,
    .top-bar-right input {
        width: 100%;
    }

    .top-bar-right select#walkin-table,
    .top-bar-right select#walkin-guests {
        width: 100%;
    }

    .btn-walkin {
        width: 100%;
        padding: 12px;
    }

    /* Time selector mobile */
    .time-selector-compact {
        padding: 10px;
    }

    .time-buttons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .time-btn {
        padding: 10px 4px;
        font-size: 0.75rem;
        min-height: 40px;
    }

    /* Tables area mobile */
    .reservations-tables {
        padding: 10px;
        max-height: none;
    }

    .tables-container {
        flex-direction: column;
        gap: 15px;
    }

    .table-section-main,
    .table-section-side {
        width: 100%;
    }

    .table-section h4 {
        font-size: 0.7rem;
    }

    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)) !important;
        gap: 6px;
    }

    .table-box {
        width: auto;
        min-width: 65px;
        min-height: 80px;
        padding: 8px 6px;
    }

    .table-number {
        font-size: 1rem;
    }

    .table-seats {
        font-size: 0.65rem;
    }

    .table-guest {
        font-size: 0.7rem;
        max-width: 60px;
    }

    /* Legend mobile */
    .occupancy-legend {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 10px;
    }

    .legend-item {
        font-size: 0.65rem;
    }

    .legend-color {
        width: 12px;
        height: 12px;
    }

    /* Bookings panel mobile */
    .reservations-bookings {
        padding: 10px;
        max-height: 40vh;
    }

    .bookings-header {
        flex-direction: row;
        justify-content: space-between;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .bookings-header h3 {
        font-size: 0.9rem;
    }

    .btn-print {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .booking-item {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 10px;
    }

    .booking-info {
        gap: 4px;
    }

    .booking-name {
        font-size: 0.9rem;
    }

    .booking-details {
        font-size: 0.7rem;
    }

    .booking-times {
        min-width: auto;
    }

    .time-main {
        font-size: 0.9rem;
    }

    .time-booked {
        display: none;
    }

    .booking-guests {
        display: none;
    }

    /* Category Tabs */
    .category-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .cat-tab-wrapper {
        flex: 1;
        min-width: calc(50% - 5px);
    }

    .cat-tab {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
    }

    .cat-delete-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    /* Menu Items */
    .menu-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .item-info {
        width: 100%;
    }

    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Table Occupancy */
    .occupancy-header {
        flex-direction: column;
        gap: 10px;
    }

    .date-selector {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .date-selector input[type="date"] {
        flex: 1;
        min-width: 150px;
    }

    .tables-section h4 {
        font-size: 1rem;
    }

    /* Quick Actions / Walk-in Form */
    .quick-actions {
        padding: 15px;
    }

    .walkin-form {
        flex-direction: column;
        gap: 10px;
    }

    .walkin-form select,
    .walkin-form input {
        width: 100%;
    }

    .walkin-form button {
        width: 100%;
    }

    /* Reservations List */
    .reservations-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .reservation-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .res-time {
        font-size: 1rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Report Table */
    .report-table-container {
        padding: 10px;
    }

    .report-table th,
    .report-table td {
        padding: 8px;
        font-size: 0.8rem;
    }

    /* Period Buttons */
    .period-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
    }

    /* Date Range */
    .date-range {
        flex-direction: column;
        align-items: stretch;
    }

    .date-range input[type="date"] {
        width: 100%;
    }

    .date-range label {
        text-align: center;
    }

    /* Time Chart */
    .time-chart {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .time-bar {
        min-width: 45px;
    }

    /* Modal */
    .modal-content {
        margin: 10px;
        padding: 20px;
    }

    .modal-content h3 {
        font-size: 1.2rem;
    }

    /* Edit modal stays at 75vh even on mobile */
    #edit-modal .modal-content {
        max-height: 75vh !important;
        height: 75vh !important;
        overflow: hidden !important;
    }

    /* Reservation edit modal mobile */
    .reservation-modal-content {
        padding: 15px;
    }

    .reservation-modal-content .form-row {
        flex-direction: column;
        gap: 10px;
    }

    /* Settings */
    .settings-content {
        padding: 15px;
    }

    /* Help Section */
    .help-content {
        grid-template-columns: 1fr;
    }

    .help-card {
        padding: 20px;
    }

    .help-card h3 {
        font-size: 1.1rem;
    }

    .help-legend-item {
        flex-direction: column;
        gap: 10px;
    }

    .legend-box {
        width: 30px;
        height: 30px;
    }

    /* Popout modal mobile */
    .popout-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .popout-header {
        padding: 1rem;
    }

    .popout-header h2 {
        font-size: 1.3rem;
    }

    .popout-list {
        padding: 1rem;
    }

    .popout-list .booking-item {
        grid-template-columns: 1fr auto;
        padding: 0.8rem;
    }

    .popout-list .booking-name {
        font-size: 1rem;
    }

    .popout-list .time-main {
        font-size: 1.1rem;
    }
}

/* Small Mobile - 480px and below */
@media screen and (max-width: 480px) {
    .admin-header {
        padding: 8px;
    }

    .admin-logo img {
        width: 30px;
        height: 30px;
    }

    .admin-logo span {
        font-size: 1rem;
    }

    .nav-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
        min-height: 36px;
    }

    .admin-main {
        padding: 8px;
    }

    #reservations-section {
        padding: 8px;
        gap: 6px;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .btn-action,
    .btn-save,
    .btn-secondary {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Time buttons 5 columns on small mobile */
    .time-buttons {
        grid-template-columns: repeat(5, 1fr);
    }

    .time-btn {
        padding: 8px 2px;
        font-size: 0.7rem;
        min-height: 36px;
    }

    /* Tables grid 4 columns */
    .tables-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .table-box {
        min-width: 55px;
        min-height: 70px;
        padding: 6px 4px;
        gap: 2px;
    }

    .table-number {
        font-size: 0.9rem;
    }

    .table-seats {
        font-size: 0.6rem;
    }

    .table-guest {
        font-size: 0.6rem;
        max-width: 50px;
    }

    /* Booking list even more compact */
    .booking-item {
        padding: 8px;
    }

    .booking-name {
        font-size: 0.85rem;
    }

    .booking-details {
        font-size: 0.65rem;
    }

    .time-main {
        font-size: 0.85rem;
    }

    .cat-tab-wrapper {
        min-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .stat-icon {
        order: 1;
        margin: 0;
    }

    .stat-value {
        order: 3;
        font-size: 1.5rem;
    }

    .stat-label {
        order: 2;
        flex: 1;
        margin-left: 10px;
    }

    /* Hide less important columns on small screens */
    .report-table th:nth-child(5),
    .report-table td:nth-child(5),
    .report-table th:nth-child(6),
    .report-table td:nth-child(6) {
        display: none;
    }

    .period-buttons {
        flex-direction: column;
    }

    .period-btn {
        width: 100%;
    }

    /* Modal adjustments */
    .modal-content {
        margin: 5px;
        padding: 15px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }

    /* Toast notifications */
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    /* Search field */
    .search-code-input {
        width: 100%;
    }
}

/* =====================================================
   RESERVATIONS POPOUT MODAL
   ===================================================== */

.popout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.popout-modal.active {
    display: flex;
}

.popout-modal-content {
    background: var(--admin-dark);
    border: 2px solid var(--admin-primary);
    border-radius: 15px;
    width: 75%;
    height: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.popout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--admin-border);
    background: var(--admin-darker);
}

.popout-header h2 {
    color: var(--admin-primary);
    margin: 0;
    font-size: 1.8rem;
}

.popout-close {
    background: transparent;
    border: none;
    color: var(--admin-light);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.popout-close:hover {
    color: var(--admin-primary);
}

.popout-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.popout-list .booking-item {
    grid-template-columns: 1fr 100px 70px 110px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.popout-list .booking-name {
    font-size: 1.3rem;
}

.popout-list .time-main {
    font-size: 1.4rem;
}

.popout-list .booking-guests {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
}

.btn-popout {
    background: transparent;
    border: 1px solid var(--admin-primary);
    color: var(--admin-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-popout:hover {
    background: var(--admin-primary);
    color: var(--admin-dark);
}

.bookings-actions {
    display: flex;
    gap: 0.5rem;
}

/* =====================================================
   NO SHOW CHECKBOX STYLING
   ===================================================== */

.booking-noshow {
    display: flex;
    align-items: center;
}

.noshow-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border: 1px solid #666;
    border-radius: 5px;
    transition: all 0.3s;
}

.noshow-label:hover {
    border-color: #ff6464;
    background: rgba(255, 100, 100, 0.1);
}

.noshow-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6464;
}

.noshow-text {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
}

.noshow-label:has(.noshow-checkbox:checked) {
    border-color: #ff6464;
    background: rgba(255, 100, 100, 0.2);
}

.noshow-label:has(.noshow-checkbox:checked) .noshow-text {
    color: #ff6464;
}

/* Booking item no-show state */
.booking-item.no-show {
    opacity: 0.6;
    border-left-color: #ff6464 !important;
}

.booking-item.no-show .booking-name {
    text-decoration: line-through;
    color: #888;
}

.booking-item.no-show .time-main {
    color: #888;
}

/* ========================================
   Custom Confirmation Modal
   ======================================== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.confirm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: var(--admin-dark);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--admin-primary);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.confirm-modal-overlay.active .confirm-modal {
    transform: scale(1);
}

.confirm-modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.confirm-modal-title {
    font-size: 1.4rem;
    color: var(--admin-primary);
    margin-bottom: 15px;
}

.confirm-modal-message {
    color: var(--admin-light);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.confirm-modal-message .guest-name {
    color: var(--admin-primary);
    font-weight: bold;
}

.confirm-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.confirm-modal-btn.cancel {
    background: var(--admin-gray);
    color: var(--admin-light);
    border: 2px solid #555;
}

.confirm-modal-btn.cancel:hover {
    background: #444;
    border-color: #777;
}

.confirm-modal-btn.confirm {
    background: var(--admin-primary);
    color: #000;
    font-weight: bold;
}

.confirm-modal-btn.confirm:hover {
    background: #8ef030;
    transform: translateY(-2px);
}

.confirm-modal-btn.confirm.danger {
    background: var(--admin-danger);
    color: #fff;
}

.confirm-modal-btn.confirm.danger:hover {
    background: #ff5555;
}

/* ========================================
   All Bookings Modal
   ======================================== */
.all-bookings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.all-bookings-modal.active {
    display: flex;
}

.all-bookings-modal-content {
    background: var(--admin-dark);
    border-radius: 12px;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--admin-primary);
}

.all-bookings-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}

.all-bookings-header h2 {
    color: var(--admin-primary);
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
}

.all-bookings-filters {
    display: flex;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.all-bookings-filters select,
.all-bookings-filters input {
    padding: 8px 12px;
    background: var(--admin-gray);
    border: 1px solid #555;
    border-radius: 5px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 0.9rem;
}

.all-bookings-filters select:focus,
.all-bookings-filters input:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.bookings-search-input {
    min-width: 180px;
}

.all-bookings-close {
    background: none;
    border: none;
    color: var(--admin-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    margin-left: auto;
}

.all-bookings-close:hover {
    color: var(--admin-danger);
}

.all-bookings-table-wrapper {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.all-bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.all-bookings-table thead {
    position: sticky;
    top: 0;
    background: var(--admin-darker);
    z-index: 10;
}

.all-bookings-table th {
    padding: 12px 15px;
    text-align: left;
    color: var(--admin-primary);
    font-weight: normal;
    border-bottom: 2px solid var(--admin-primary);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.all-bookings-table th:hover {
    background: rgba(124, 218, 36, 0.1);
}

.all-bookings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    vertical-align: top;
}

.all-bookings-table tbody tr:hover {
    background: rgba(124, 218, 36, 0.05);
}

.all-bookings-table tbody tr.future-booking {
    background: rgba(124, 218, 36, 0.08);
}

.all-bookings-table tbody tr.past-booking {
    opacity: 0.7;
}

.all-bookings-table tbody tr.today-booking {
    background: rgba(124, 218, 36, 0.15);
    border-left: 3px solid var(--admin-primary);
}

.all-bookings-table .booking-date {
    white-space: nowrap;
    font-weight: bold;
}

.all-bookings-table .booking-date .weekday {
    font-size: 0.75rem;
    color: #888;
    font-weight: normal;
}

.all-bookings-table .booking-time {
    font-weight: bold;
    color: var(--admin-primary);
}

.all-bookings-table .booking-name {
    font-weight: bold;
}

.all-bookings-table .booking-code {
    font-family: monospace;
    background: var(--admin-gray);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--admin-primary);
}

.all-bookings-table .booking-guests {
    text-align: center;
}

.all-bookings-table .booking-contact {
    font-size: 0.8rem;
    color: #aaa;
}

.all-bookings-table .booking-contact a {
    color: var(--admin-primary);
    text-decoration: none;
}

.all-bookings-table .booking-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.all-bookings-table .booking-status.confirmed {
    background: var(--admin-primary);
    color: #000;
}

.all-bookings-table .booking-status.seated {
    background: var(--admin-orange);
    color: #000;
}

.all-bookings-table .booking-status.completed {
    background: #666;
    color: #fff;
}

.all-bookings-table .booking-status.cancelled {
    background: var(--admin-danger);
    color: #fff;
}

.all-bookings-table .booking-status.no_show {
    background: #8b0000;
    color: #fff;
}

.all-bookings-table .booking-notes {
    max-width: 200px;
    font-size: 0.8rem;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-bookings-footer {
    padding: 15px 25px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#all-bookings-count {
    color: #888;
    font-size: 0.9rem;
}

/* Button style for "Alle" button */
.btn-all-bookings {
    background: var(--admin-gray);
    color: var(--admin-light);
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-all-bookings:hover {
    background: var(--admin-primary);
    color: #000;
    border-color: var(--admin-primary);
}

/* Responsive for All Bookings Modal */
@media (max-width: 768px) {
    .all-bookings-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .all-bookings-header {
        padding: 15px;
    }

    .all-bookings-header h2 {
        font-size: 1.2rem;
    }

    .all-bookings-filters {
        width: 100%;
    }

    .all-bookings-filters select,
    .all-bookings-filters input {
        flex: 1;
        min-width: 100px;
    }

    .all-bookings-table {
        font-size: 0.8rem;
    }

    .all-bookings-table th,
    .all-bookings-table td {
        padding: 8px 10px;
    }

    .all-bookings-table .booking-notes {
        max-width: 100px;
    }
}

/* ===========================
   STAFF SECTION STYLES
   =========================== */

.staff-content {
    padding: 20px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.staff-card {
    background: var(--admin-gray);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.staff-card:hover {
    border-color: var(--admin-primary);
    transform: translateY(-2px);
}

.staff-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #333;
}

.staff-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--admin-primary), #5fb318);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
}

.staff-info h3 {
    margin: 0 0 5px;
    color: var(--admin-light);
    font-size: 1.1rem;
}

.staff-role {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.staff-role.role-manager {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.staff-role.role-service {
    background: rgba(124, 218, 36, 0.2);
    color: var(--admin-primary);
    border: 1px solid var(--admin-primary);
}

.staff-role.role-kitchen {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.staff-role.role-bar {
    background: rgba(130, 177, 255, 0.2);
    color: #82b1ff;
    border: 1px solid #82b1ff;
}

.staff-role.role-it {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
    border: 1px solid #ce93d8;
}

.staff-card-body {
    padding: 20px;
}

.staff-responsibilities {
    margin: 0;
    padding: 0;
    list-style: none;
}

.staff-responsibilities li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-responsibilities li:last-child {
    border-bottom: none;
}

.staff-responsibilities li::before {
    content: '✓';
    color: var(--admin-primary);
    font-weight: bold;
}

.staff-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

.staff-contact a {
    color: var(--admin-primary);
    text-decoration: none;
}

.staff-contact a:hover {
    text-decoration: underline;
}

.staff-card-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid #333;
}

.staff-card-actions button {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-edit-staff {
    background: rgba(124, 218, 36, 0.2);
    color: var(--admin-primary);
    border: 1px solid var(--admin-primary) !important;
}

.btn-edit-staff:hover {
    background: var(--admin-primary);
    color: #000;
}

.btn-delete-staff {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b !important;
}

.btn-delete-staff:hover {
    background: #ff6b6b;
    color: #000;
}

/* Staff Modal */
.staff-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.staff-modal {
    background: var(--admin-dark);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--admin-primary);
}

.staff-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.staff-modal-header h3 {
    margin: 0;
    color: var(--admin-primary);
}

.staff-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.staff-modal-close:hover {
    color: #fff;
}

.staff-modal-body {
    padding: 20px;
}

.staff-form-group {
    margin-bottom: 15px;
}

.staff-form-group label {
    display: block;
    color: #888;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.staff-form-group input,
.staff-form-group select,
.staff-form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--admin-gray);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 1rem;
}

.staff-form-group input:focus,
.staff-form-group select:focus,
.staff-form-group textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.staff-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.staff-form-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.staff-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #333;
}

.staff-modal-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
}

.btn-staff-cancel {
    background: var(--admin-gray);
    color: #888;
}

.btn-staff-cancel:hover {
    background: #444;
    color: #fff;
}

.btn-staff-save {
    background: var(--admin-primary);
    color: #000;
}

.btn-staff-save:hover {
    background: #8fef30;
}

/* Empty state */
.staff-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.staff-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.staff-empty p {
    margin: 0 0 20px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .staff-card-header {
        padding: 15px;
    }

    .staff-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ===========================
   INVITED USERS SECTION
   =========================== */

.invited-users-section {
    background: rgba(124, 218, 36, 0.05);
    border: 1px solid rgba(124, 218, 36, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.invited-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--admin-gray);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.invited-user-card:last-child {
    margin-bottom: 0;
}

.invited-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invited-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(124, 218, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    font-weight: bold;
}

.invited-user-details h4 {
    margin: 0 0 3px;
    color: var(--admin-light);
    font-size: 0.95rem;
}

.invited-user-details p {
    margin: 0;
    color: #888;
    font-size: 0.8rem;
}

.invited-user-actions {
    display: flex;
    gap: 8px;
}

.invited-user-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-revoke {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b !important;
}

.btn-revoke:hover {
    background: #ff6b6b;
    color: #000;
}

.no-invited-users {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

/* ===========================
   MY PROFILE SECTION (MEIN PROFIL)
   =========================== */

.myprofile-content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.myprofile-card {
    background: var(--admin-gray);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

.myprofile-empty {
    padding: 40px 20px;
    text-align: center;
}

.myprofile-empty h3 {
    color: var(--admin-primary);
    margin-bottom: 15px;
}

.myprofile-empty p {
    color: #888;
    margin-bottom: 10px;
}

.myprofile-empty .btn-action {
    margin-top: 20px;
}

.myprofile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.myprofile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--admin-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--admin-primary);
    flex-shrink: 0;
}

.myprofile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.myprofile-avatar span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--admin-primary);
}

.myprofile-info h2 {
    color: var(--admin-light);
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.myprofile-body {
    padding: 20px 25px;
}

.myprofile-section {
    margin-bottom: 20px;
}

.myprofile-section:last-child {
    margin-bottom: 0;
}

.myprofile-section h4 {
    color: var(--admin-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.profile-responsibilities {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-responsibilities li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    color: var(--admin-light);
}

.profile-responsibilities li:last-child {
    border-bottom: none;
}

.profile-contact-item {
    padding: 8px 0;
    color: var(--admin-light);
}

.profile-contact-item strong {
    color: #888;
}

.no-contact {
    color: #666;
    font-style: italic;
}

.preferred-contact {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

.preferred-contact strong {
    color: var(--admin-primary);
}

.myprofile-actions {
    padding: 20px 25px;
    border-top: 1px solid #333;
    background: #1a1a1a;
}

.myprofile-actions .btn-action {
    width: 100%;
    padding: 12px;
}

/* Profile Quick Links */
.myprofile-quicklinks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.btn-quicklink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-quicklink .quicklink-icon {
    font-size: 1.5rem;
}

.btn-quicklink .quicklink-text {
    font-weight: bold;
}

.btn-quicklink.btn-service {
    background: rgba(124, 218, 36, 0.15);
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.btn-quicklink.btn-service:hover {
    background: var(--admin-primary);
    color: #000;
}

.btn-quicklink.btn-kitchen {
    background: rgba(255, 130, 78, 0.15);
    border-color: var(--admin-orange);
    color: var(--admin-orange);
}

.btn-quicklink.btn-kitchen:hover {
    background: var(--admin-orange);
    color: #000;
}

/* ===========================
   SCHEDULE SECTION (SCHICHTPLAN)
   =========================== */

.schedule-content {
    padding: 20px;
}

.schedule-week-display {
    text-align: center;
    margin-bottom: 20px;
    color: var(--admin-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.schedule-grid {
    /* Container for both desktop and mobile views */
}

.schedule-desktop {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    gap: 2px;
    background: #333;
    border-radius: 12px;
    overflow: hidden;
    overflow: hidden;
}

.schedule-header {
    background: #1a1a1a;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    color: var(--admin-primary);
}

.schedule-header.day-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.schedule-header .day-name {
    font-size: 0.9rem;
}

.schedule-header .day-date {
    font-size: 0.75rem;
    color: #888;
}

.schedule-header.today {
    background: rgba(124, 218, 36, 0.2);
    border-bottom: 2px solid var(--admin-primary);
}

.schedule-row-label {
    background: #1a1a1a;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.85rem;
}

.schedule-cell {
    background: var(--admin-dark);
    padding: 10px;
    min-height: 80px;
    position: relative;
}

.schedule-cell.closed {
    background: repeating-linear-gradient(
        45deg,
        #1a1a1a,
        #1a1a1a 10px,
        #222 10px,
        #222 20px
    );
}

.schedule-cell.closed::after {
    content: 'Ruhetag';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #555;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.schedule-assignment {
    background: rgba(124, 218, 36, 0.15);
    border: 1px solid var(--admin-primary);
    border-radius: 5px;
    padding: 6px 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: var(--admin-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-assignment.kitchen {
    background: rgba(255, 107, 107, 0.15);
    border-color: #ff6b6b;
}

.schedule-assignment.bar {
    background: rgba(130, 177, 255, 0.15);
    border-color: #82b1ff;
}

.schedule-assignment .remove-assignment {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 0 0 0 8px;
    font-size: 1rem;
    opacity: 0.7;
}

.schedule-assignment .remove-assignment:hover {
    opacity: 1;
}

.schedule-add-btn {
    width: 100%;
    padding: 5px;
    background: transparent;
    border: 1px dashed #444;
    border-radius: 5px;
    color: #666;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.schedule-add-btn:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

/* Schedule Modal */
.schedule-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.schedule-modal {
    background: var(--admin-dark);
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    border: 2px solid var(--admin-primary);
}

.schedule-modal-header {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.schedule-modal-header h3 {
    margin: 0;
    color: var(--admin-primary);
}

.schedule-modal-body {
    padding: 20px;
}

.schedule-modal-body select {
    width: 100%;
    padding: 12px;
    background: var(--admin-gray);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--admin-light);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
}

.schedule-modal-body select:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.schedule-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #333;
}

.schedule-modal-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

/* ==========================================
   MOBILE CARD VIEW (hidden by default)
   ========================================== */
.schedule-mobile {
    display: none;
}

.schedule-day-card {
    background: var(--admin-gray);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

.schedule-day-card.today {
    border-color: var(--admin-primary);
    box-shadow: 0 0 10px rgba(124, 218, 36, 0.2);
}

.schedule-day-card.closed {
    opacity: 0.6;
}

.schedule-day-header {
    background: #1a1a1a;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #333;
}

.schedule-day-header .day-name {
    font-weight: bold;
    color: var(--admin-light);
    font-size: 1rem;
}

.schedule-day-header .day-date {
    color: #888;
    font-size: 0.9rem;
}

.schedule-day-header .today-badge {
    background: var(--admin-primary);
    color: var(--admin-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: auto;
}

.schedule-day-content {
    padding: 10px;
}

.schedule-day-content.closed-content {
    padding: 20px;
    text-align: center;
}

.schedule-day-content .closed-text {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-role-section {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.schedule-role-section:last-child {
    border-bottom: none;
}

.schedule-role-section .role-header {
    width: 70px;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 0;
    color: var(--admin-primary);
}

.schedule-role-section .role-header.kitchen {
    color: #ff6b6b;
}

.schedule-role-section .role-header.bar {
    color: #82b1ff;
}

.role-assignments {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.role-assignments .no-assignment {
    color: #555;
    font-size: 0.85rem;
}

.role-assignments .schedule-assignment {
    margin: 0;
    font-size: 0.8rem;
    padding: 4px 8px;
}

.role-assignments .schedule-add-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .schedule-desktop {
        grid-template-columns: 80px repeat(7, 1fr);
        font-size: 0.85rem;
    }

    .schedule-header,
    .schedule-row-label {
        padding: 10px 5px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop grid, show mobile cards */
    .schedule-desktop {
        display: none !important;
    }

    .schedule-mobile {
        display: block !important;
    }

    /* Schedule modal - mobile friendly */
    .schedule-modal-overlay {
        padding: 15px;
    }

    .schedule-modal {
        max-width: 100%;
    }

    .schedule-modal-body select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===========================
   MAJOR MOBILE IMPROVEMENTS
   =========================== */

@media screen and (max-width: 768px) {
    /* Header - stacked layout */
    .admin-header {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .admin-logo {
        width: 100%;
        justify-content: space-between;
    }

    .admin-logo span {
        font-size: 1rem;
    }

    .admin-logo img {
        width: 40px;
        height: 40px;
    }

    /* User bar mobile adjustments */
    .admin-user-bar {
        padding: 6px 15px;
        gap: 10px;
    }

    .admin-user-bar .btn-logout,
    .admin-user-bar .btn-backup {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .admin-user-bar .user-display {
        font-size: 0.8rem;
    }

    /* Navigation - horizontal scroll */
    .admin-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        gap: 8px;
        justify-content: flex-start;
    }

    .admin-nav::-webkit-scrollbar {
        height: 4px;
    }

    .admin-nav::-webkit-scrollbar-track {
        background: #222;
        border-radius: 2px;
    }

    .admin-nav::-webkit-scrollbar-thumb {
        background: var(--admin-primary);
        border-radius: 2px;
    }

    .nav-btn {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Section header - stacked */
    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 1.2rem;
        width: 100%;
    }

    .section-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .section-actions .btn-action,
    .section-actions .btn-secondary {
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
        padding: 12px 10px;
        font-size: 0.8rem;
        text-align: center;
    }

    /* Staff grid - single column */
    .staff-grid {
        grid-template-columns: 1fr !important;
    }

    .staff-card {
        margin-bottom: 15px;
    }

    .staff-card-header {
        padding: 15px;
    }

    .staff-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .staff-info h3 {
        font-size: 1rem;
    }

    .staff-role {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .staff-card-body {
        padding: 15px;
    }

    .staff-responsibilities li {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .staff-contact {
        font-size: 0.85rem;
    }

    .staff-card-actions {
        padding: 12px 15px;
    }

    .staff-card-actions button {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    /* Staff modal - full screen */
    .staff-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .staff-modal {
        max-width: 100%;
        width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        border-width: 2px 2px 0 2px;
    }

    .staff-modal-header {
        padding: 15px 20px;
        position: sticky;
        top: 0;
        background: var(--admin-dark);
        z-index: 10;
    }

    .staff-modal-header h3 {
        font-size: 1.1rem;
    }

    .staff-modal-body {
        padding: 15px 20px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .staff-form-group {
        margin-bottom: 12px;
    }

    .staff-form-group label {
        font-size: 0.85rem;
    }

    .staff-form-group input,
    .staff-form-group select,
    .staff-form-group textarea {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .staff-modal-footer {
        padding: 15px 20px;
        position: sticky;
        bottom: 0;
        background: var(--admin-dark);
    }

    .staff-modal-footer button {
        padding: 14px;
        font-size: 1rem;
    }

    /* Schedule - mobile cards already handled by .schedule-mobile */
    .schedule-content {
        padding: 10px;
    }

    .schedule-week-display {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    /* Reservations main - stack */
    .reservations-main {
        flex-direction: column;
    }

    .reservations-tables,
    .reservations-list {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Tables grid */
    .tables-grid {
        gap: 8px;
    }

    .table-card {
        padding: 8px;
        min-width: 60px;
    }

    .table-card .table-id {
        font-size: 0.9rem;
    }

    .table-card .table-seats {
        font-size: 0.7rem;
    }

    /* Time buttons - scrollable */
    .time-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        flex-wrap: nowrap !important;
    }

    .time-btn {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Help cards */
    .help-content {
        padding: 10px;
    }

    .help-card {
        padding: 15px;
        margin-bottom: 12px;
    }

    .help-card h3 {
        font-size: 1rem;
    }

    .help-card p,
    .help-card li {
        font-size: 0.9rem;
    }

    .help-steps {
        padding-left: 20px;
    }

    .help-steps li {
        margin-bottom: 8px;
    }

    /* Confirm modal */
    .confirm-modal-overlay {
        padding: 15px;
    }

    .confirm-modal {
        padding: 20px;
        max-width: 100%;
    }

    .confirm-modal h3 {
        font-size: 1.1rem;
    }

    .confirm-modal p {
        font-size: 0.9rem;
    }

    .confirm-modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .confirm-modal-buttons button {
        width: 100%;
        padding: 14px;
    }

    /* All bookings modal */
    .all-bookings-modal {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .all-bookings-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .all-bookings-header h2 {
        font-size: 1.1rem;
    }

    .all-bookings-filters {
        width: 100%;
    }

    .all-bookings-filters select,
    .all-bookings-filters input {
        width: 100%;
        font-size: 16px;
    }

    .all-bookings-body {
        padding: 10px;
    }

    .all-bookings-table {
        font-size: 0.75rem;
    }

    .all-bookings-table th,
    .all-bookings-table td {
        padding: 8px 6px;
    }

    /* Menu editor */
    .category-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .cat-tab {
        flex-shrink: 0;
        padding: 10px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .menu-items-container {
        padding: 10px;
    }

    .menu-item-card {
        padding: 12px;
    }

    /* Reports */
    .report-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .report-card {
        padding: 15px;
    }

    .report-card .value {
        font-size: 1.5rem;
    }

    .report-card .label {
        font-size: 0.75rem;
    }

    /* Settings */
    .settings-content {
        padding: 15px;
    }

    .settings-card {
        padding: 15px;
    }
}

/* Extra small screens */
@media screen and (max-width: 380px) {
    .admin-logo span {
        font-size: 0.9rem;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .section-actions .btn-action,
    .section-actions .btn-secondary {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .staff-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .report-cards {
        grid-template-columns: 1fr;
    }
}
