/* Base Styles for Beach Volleyball Booking System */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

h1 i {
    color: #f39c12;
}

/* Auth Panel */
.auth-panel {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
}

.user-info.admin {
    background: rgba(40, 167, 69, 0.2); /* Зеленый фон с прозрачностью */
    border: 2px solid #28a745;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
}

.btn-secondary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-width: 100px;
    text-align: center;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure modal buttons are consistent */
.modal .btn-secondary {
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    text-decoration: none !important;
    min-width: 100px;
    text-align: center;
}

.modal .btn-secondary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    background: linear-gradient(135deg, #2980b9, #1c6ea4) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.btn-admin {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Modal button styles - standardization */
.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
}

.modal-btn:active {
    transform: translateY(0);
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Left Panel - Booking Form */
.left-panel {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.booking-form h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f2f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.auth-notice a {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.auth-notice a:hover {
    text-decoration: underline;
}

/* FINAL SOLUTION: Date and Time in one row using CSS Grid */
@media (min-width: 769px) {
    /* Make booking-form a grid container */
    .booking-form {
        display: block !important;
    }
    
    /* Name field - full width */
    .booking-form > .form-group:nth-of-type(1) {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Date/Time combined field - full width */
    .booking-form > .form-group:nth-of-type(2) {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Ensure datetime-row displays correctly on desktop */
    .booking-form > .form-group:nth-of-type(2) .datetime-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
        align-items: stretch !important;
        width: 100% !important;
        margin-top: 8px;
    }
    
    /* Date selector on desktop */
    .booking-form > .form-group:nth-of-type(2) .date-selector {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .booking-form > .form-group:nth-of-type(2) .date-selector input[type="date"] {
        flex: 1 !important;
        min-width: 0 !important;
        height: 46px !important;
        width: 100% !important;
    }
    
    /* Time selector on desktop */
    .booking-form > .form-group:nth-of-type(2) .time-selector {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .booking-form > .form-group:nth-of-type(2) .time-selector select {
        flex: 1 !important;
        min-width: 0 !important;
        height: 46px !important;
        width: auto !important;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(252, 252, 252, 0.493);
}

.form-group input:disabled {
    background-color: #e8f4fc;
    cursor: not-allowed;
}

/* Date and Time Row */
.datetime-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Date Selector */
.date-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 2;
}

.date-nav {
    background: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.date-nav:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

#booking-date {
    flex: 1;
}

.date-display {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Time Selector */
.time-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    flex: 1;
}

.time-selector select {
    flex: 1;
    min-width: 70px;
    
}

.time-selector span {
    font-weight: 600;
    color: #2c3e50;
}

/* Slots hint and selected slots display (kept for new interface) */
.slots-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.selected-slots {
    padding: 12px;
    background: #e8f4fc;
    border-radius: 8px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    border: 2px solid #3498db;
}

/* New Slots Increment/Decrement Control */
.slots-control {
    margin-bottom: 15px;
}

.slots-increment-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.slots-decrement-btn,
.slots-increment-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    color: #495057;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slots-decrement-btn:hover,
.slots-increment-btn:hover {
    background: #e9ecef;
    border-color: #3498db;
    color: #3498db;
}

.slots-decrement-btn:active,
.slots-increment-btn:active {
    background: #dee2e6;
    transform: scale(0.95);
}

.slots-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

#slots-input {
    width: 100px;
    padding: 12px 40px 12px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #2c3e50;
    background: white;
    -moz-appearance: textfield;
}

#slots-input::-webkit-outer-spin-button,
#slots-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slots-unit {
    position: absolute;
    right: 12px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
}

.slots-control .slots-hint {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Court Selection */
.court-selection {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .court-selection {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .court-option {
        flex: 0 0 auto;
        width: 100px;
        min-width: 100px;
        padding: 12px 8px;
    }
    
    .court-number {
        font-size: 1.5rem;
    }
    
    .court-desc {
        font-size: 0.8rem;
    }
    
    /* Mobile styles for slots control */
    .slots-increment-control {
        gap: 8px;
    }
    
    .slots-decrement-btn,
    .slots-increment-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    #slots-input {
        width: 80px;
        padding: 10px 35px 10px 10px;
        font-size: 1.1rem;
    }
    
    .slots-unit {
        right: 10px;
        font-size: 0.85rem;
    }
    
    .slots-control .slots-hint {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .court-selection {
        gap: 6px;
    }
    
    .court-option {
        width: 90px;
        min-width: 90px;
        padding: 10px 6px;
    }
    
    .court-number {
        font-size: 1.3rem;
    }
    
    /* Extra small screen styles for slots control */
    .slots-increment-control {
        gap: 6px;
    }
    
    .slots-decrement-btn,
    .slots-increment-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    #slots-input {
        width: 70px;
        padding: 8px 30px 8px 8px;
        font-size: 1rem;
    }
    
    .slots-unit {
        right: 8px;
        font-size: 0.8rem;
    }
    
    .slots-control .slots-hint {
        font-size: 0.8rem;
    }
}

.court-option {
    background: white;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.court-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.court-option.selected {
    background: #e8f4fc;
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.court-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.court-desc {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Price Summary */
.price-summary {
    background: linear-gradient(135deg, #e8f4fc, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
}

.price-summary h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f2f6;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #3498db;
}

/* Right Panel - Schedule */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.schedule {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.schedule h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f4fc;
    border-radius: 10px;
}

.date-nav-buttons {
    display: flex;
    gap: 10px;
}

#schedule-date {
    font-weight: 700;
    font-size: 1rem;
    color: #2c3e50;
}

.time-grid {
    display: grid;
    grid-template-columns: 100px repeat(var(--court-count, 4), 1fr);
    gap: 1px;
    background: #e0e6ed;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: auto;
}

.time-header {
    display: contents;
}

.time-row {
    display: contents;
}

.court-header {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

/* Header cells */
.header-cell {
    background: #2c3e50;
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    border-bottom: none;
    font-size: 14px;
}

.court-slot.header-cell {
    background: #3498db;
}

.time-slot {
    background: white;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #f1f2f6;
    font-size: 14px;
}

.court-slot {
    padding: 10px;
    text-align: center;
    background: white;
    border-bottom: 1px solid #f1f2f6;
    position: relative;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-direction: column; /* Stack children vertically */
}

.court-slot.booked {
    background: #ffeaa7 !important;
    color: #856404 !important;
    font-weight: 600 !important;
}

.court-slot.pending {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    font-weight: 600 !important;
}

.court-slot.selected {
    background: #d4edda !important;
    color: #155724 !important;
    font-weight: 600 !important;
    border: 2px solid #2ecc71 !important;
}

.court-slot.available {
    background: #e8f4fc;
    color: #6c757d;
    cursor: pointer;
}

.court-slot.available:hover {
    background: #e9ecef;
}

/* Booker name inside booked cells - always visible */
.court-slot.booked .booker-name,
.court-slot.pending .booker-name {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 0 2px !important;
    max-width: 100% !important;
    color: #000000 !important; /* Force black color for visibility */
    font-weight: 600 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
    margin: auto !important; /* Center in flex container */
}

.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 15px;
    background: #e8f4fc;
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.booked {
    background: #ffeaa7;
}

.legend-color.pending {
    background: #d1ecf1;
}

.legend-color.selected {
    background: #d4edda;
}

.legend-color.available {
    background: #e8f4fc;
    border: 1px solid #dee2e6;
}

/* Bookings List */
.bookings-list {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.bookings-list h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#bookings-container {
    max-height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 10px;
}

.booking-item {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

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

.booking-item-id {
    font-weight: 700;
    color: #2c3e50;
}

.booking-item-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.booking-item-status.pending {
    background: #fff3cd;
    color: #856404;
}

.booking-item-status.approved {
    background: #d4edda;
    color: #155724;
}

.booking-item-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.booking-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    font-size: 0.9rem;
}

.booking-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
}

.detail-value {
    color: #2c3e50;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
    touch-action: none; /* Prevent scroll gestures on backdrop */
}

.modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: auto;
    touch-action: pan-y; /* Allow vertical scroll, prevent horizontal gestures on backdrop */
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
    margin: auto;
    padding: 30px;
    pointer-events: auto;
    touch-action: pan-y; /* Allow vertical scroll inside modal content */
}

/* Padding for form elements inside modals */
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-content .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal-content .form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.486);
}

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

.modal-content .form-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f2f6;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.modal-content .form-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.modal-content .form-footer a:hover {
    text-decoration: underline;
}

.modal-content .modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Ensure modal buttons have proper styling */
.modal-btn {
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    text-decoration: none !important;
    min-width: 100px;
    text-align: center;
}

.modal-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    background: linear-gradient(135deg, #2980b9, #1c6ea4) !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* My Bookings Modal Specific Styles */
.bookings-container {
    max-height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    margin: 15px 0;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* My Bookings Modal - wider for table layout */
#my-bookings-modal .modal-content {
    max-width: 900px;
    width: 95%;
}

#my-bookings-modal .bookings-table {
    min-width: 700px;
}

#my-bookings-modal .bookings-table th,
#my-bookings-modal .bookings-table td {
    white-space: nowrap;
    padding: 10px 12px;
}

#my-bookings-modal .bookings-table .booking-date {
    min-width: 100px;
}

#my-bookings-modal .bookings-table .booking-time {
    min-width: 120px;
}

#my-bookings-modal .bookings-table .booking-court {
    min-width: 160px;
}

#my-bookings-modal .bookings-table .booking-duration {
    text-align: center;
}

#my-bookings-modal .bookings-table .booking-price {
    text-align: right;
    font-weight: 600;
}

/* Mobile: horizontal scroll for my-bookings table (7 columns) */
@media (max-width: 768px) {
    #my-bookings-modal .bookings-container {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #my-bookings-modal .bookings-table {
        min-width: 750px;
    }
    
    #my-bookings-modal .bookings-table th,
    #my-bookings-modal .bookings-table td {
        padding: 8px 8px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    #my-bookings-modal .bookings-container {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #my-bookings-modal .bookings-table {
        min-width: 650px;
    }
    
    #my-bookings-modal .bookings-table th,
    #my-bookings-modal .bookings-table td {
        padding: 6px 6px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

.empty-bookings-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Enhanced Mobile Modal Windows */
@media (max-width: 768px) {
    /* Modal container */
    .modal.active {
        padding: 0;
        align-items: stretch;
        justify-content: flex-end;
        flex-direction: column;
    }
    
    /* Modal content - bottom sheet style for mobile */
    .modal-content {
        max-width: 100%;
        max-height: 90vh;
        width: 100%;
        padding: 25px 20px 30px;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
        animation: slideUp 0.3s ease-out;
        position: relative;
        overflow-y: auto;
        background: white;
        color: #2c3e50;
    }
    
    /* Text contrast improvement */
    .modal-content h2,
    .modal-content h3,
    .modal-content h4,
    .modal-content h5,
    .modal-content p {
        color: #2c3e50;
    }
    
    .modal-content label,
    .modal-content .form-group label {
        color: #2c3e50;
        font-weight: 600;
    }
    
    .modal-content input::placeholder,
    .modal-content select::placeholder,
    .modal-content textarea::placeholder {
        color: #7f8c8d;
    }
    
    /* Close button at top for mobile */
    .modal-header {
        position: relative;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .close-modal {
        position: absolute !important;
        top: 0;
        right: 15px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #e8f4fc;
        border-radius: 50%;
        z-index: 10;
    }
    
    /* Modal title */
    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
        padding-right: 50px;
        line-height: 1.3;
        color: #2c3e50;
        font-weight: 700;
    }
    
    /* Form improvements in modals */
    .modal-content .form-group {
        margin-bottom: 20px;
    }
    
    .modal-content .form-group label {
        color: #2c3e50;
        font-weight: 700;
    }
    
    .modal-content .form-group input,
    .modal-content .form-group select,
    .modal-content .form-group textarea {
        padding: 16px;
        font-size: 1rem;
        border-radius: 10px;
        color: #2c3e50;
    }
    
    /* Form actions stacked vertically */
    .modal-content .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }
    
    .modal-content .form-actions button {
        width: 100%;
        padding: 18px;
        font-size: 1.1rem;
        border-radius: 12px;
    }
    
    /* Modal footer links */
    .modal-content .form-footer {
        margin-top: 25px;
        padding-top: 20px;
        font-size: 0.95rem;
        text-align: center;
        color: #2c3e50;
    }
    
    .modal-content .form-footer a {
        color: #2c5aa0;
        text-decoration: none;
        font-weight: 700;
    }
    
    /* Admin modal specific mobile styles */
    .admin-modal .modal-content {
        max-height: 95vh;
        padding: 20px 15px;
    }
    
    .admin-tabs {
        flex-direction: column;
        padding: 0;
        border-bottom: none;
    }
    
    .admin-tab {
        padding: 14px 15px;
        border-bottom: 1px solid #f1f2f6;
        text-align: left;
        justify-content: flex-start;
        color: #2c3e50;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .admin-tab.active {
        color: #3498db;
        background: #e8f4fc;
    }
    
    .admin-tab-content {
        padding: 20px 0;
        max-height: 60vh;
        color: #2c3e50;
    }
    
    .admin-tab-content h3 {
        color: #2c3e50;
        font-weight: 700;
    }
    
    /* Swipe to close indicator */
    .modal-swipe-indicator {
        width: 40px;
        height: 5px;
        background: #ddd;
        border-radius: 3px;
        margin: 0 auto 15px;
        display: block;
    }
    
    /* Button styles */
    .modal-btn, .modal .btn-secondary {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        min-width: 100%;
        margin-bottom: 10px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px 25px;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        color: #2c3e50;
        font-weight: 700;
    }
    
    .modal-content .form-group label {
        color: #2c3e50;
        font-weight: 700;
    }
    
    .modal-content .form-group input,
    .modal-content .form-group select,
    .modal-content .form-group textarea {
        padding: 14px;
        color: #2c3e50;
    }
    
    .modal-content .form-actions button {
        padding: 16px;
        font-size: 1rem;
    }
    
    .admin-tab {
        padding: 16px 12px;
        font-size: 0.95rem;
        color: #2c3e50;
        font-weight: 600;
    }
    
    .modal-content .users-table th {
        color: #2c3e50;
        font-weight: 700;
    }
    
    .modal-content .users-table td {
        color: #2c3e50;
        font-weight: 500;
    }
}

/* Animation for mobile modal */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Touch-friendly modal interactions */
@media (hover: none) and (pointer: coarse) {
    .modal {
        -webkit-overflow-scrolling: auto;
    }
    
    .modal-content {
        overscroll-behavior: none;
        overflow-y: scroll;
        -webkit-user-select: text;
        user-select: text;
    }
    
    /* Prevent background scroll when modal is open */
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Confirmation modal specific styles for mobile */
#confirmation-modal .modal-content {
    text-align: center;
}

#confirmation-modal .modal-details {
    text-align: left;
    background: #e8f4fc;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

#confirmation-modal .modal-details p {
    margin-bottom: 10px;
    font-size: 1rem;
}

#confirmation-modal .modal-actions {
    margin-top: 25px;
}

/* Mobile-specific styles */
.is-mobile {
    /* Additional mobile-specific styles can be added here */
}

/* Touch active state */
.btn.touch-active,
.modal-btn.touch-active,
.slot-btn.touch-active,
.court-option.touch-active,
.time-slot.touch-active {
    transform: scale(0.97) !important;
    opacity: 0.9;
    transition: transform 0.1s, opacity 0.1s;
}

/* Prevent background scroll when modal is open on mobile */
body.modal-open-mobile {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Mobile-optimized scrollbars */
.is-mobile ::-webkit-scrollbar {
    width: 6px;
}

.is-mobile ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Improved focus states for mobile */
.is-mobile .btn:focus,
.is-mobile .modal-btn:focus,
.is-mobile input:focus,
.is-mobile select:focus,
.is-mobile textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Mobile-optimized animations */
@media (prefers-reduced-motion: reduce) {
    .modal-content,
    .btn,
    .modal-btn,
    .slot-btn,
    .court-option {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support for mobile */
@media (prefers-contrast: high) {
    .btn,
    .modal-btn,
    .slot-btn,
    .court-option {
        border: 2px solid currentColor;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border: 2px solid currentColor;
    }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
    .is-mobile .modal-content {
        background: #ffffff;
        color: #000000;
    }
    
    .is-mobile .form-group input,
    .is-mobile .form-group select,
    .is-mobile .form-group textarea {
        background: #fffefe;
        color: #000000;
        border-color: #4a6572;
    }
    
    .is-mobile .form-group input:focus,
    .is-mobile .form-group select:focus,
    .is-mobile .form-group textarea:focus {
        border-color: #3498db;
        background: #ffffff;
    }
}

/* Final mobile optimization checklist */
/*
✓ Touch targets at least 44x44px
✓ No horizontal scrolling
✓ Readable font sizes (minimum 16px for body)
✓ Adequate spacing between interactive elements
✓ Forms optimized for mobile input
✓ Modals optimized for mobile (bottom sheet style)
✓ Prevent zoom on input focus (iOS)
✓ Swipe to close for modals
✓ Touch feedback for buttons
✓ Mobile-optimized animations
✓ Dark mode support
✓ High contrast mode support
✓ Reduced motion support
*/

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

.modal-header h3 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: absolute !important;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.close-modal:hover {
    background: #e8f4fc;
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #f1f2f6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Admin Modal */
.admin-modal .modal-content {
    max-width: 900px;
    padding: 0;
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid #f1f2f6;
    padding: 0 15px;
    background: #e8f4fc;
    border-radius: 15px 15px 0 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tab {
    padding: 14px 16px;
    background: none;
    border: none;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-tab:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.admin-tab.active {
    color: #3498db;
    background: white;
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
}

.admin-tab-content {
    padding: 30px;
    display: none;
    max-height: 60vh;
    overflow-y: auto;
}

.admin-tab-content.active {
    display: block;
}

.admin-tab-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-actions {
    margin-bottom: 25px;
    padding: 20px;
    background: #e8f4fc;
    border-radius: 10px;
}

.system-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.system-info {
    background: #e8f4fc;
    padding: 20px;
    border-radius: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-label {
    display: block;
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Improve overall modal appearance */
.modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
    margin: auto;
    padding: 30px;
    border: 1px solid #e0e6ed;
}

/* Enhanced modal header */
.modal-content > h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f2f6;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #e0e6ed;
    margin-top: 40px;
}

/* Responsive Design - Mobile First Improvements */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    /* Main content layout */
    .main-content {
        flex-direction: column;
        gap: 20px;
        padding: 0;
        min-width: 0; /* Allow shrinking when content is wider than viewport */
    }
    
    .left-panel, .right-panel {
        width: 100%;
        padding: 15px;
        border-radius: 10px;
        margin: 0;
        min-width: 0; /* Allow shrinking when content is wider than viewport */
    }
    
    /* Form improvements for mobile - keep elements in single row */
    .datetime-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center !important;
    }
    
    .date-selector {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }
    
    .date-nav {
        width: auto;
        flex: 0 0 auto;
        min-width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    
    #booking-date {
        flex: 1;
        min-width: 0; /* Allows input to shrink */
        padding: 6px;
        font-size: 0.8rem;
        width: auto;
    }
    
    .time-selector {
        flex-direction: row;
        gap: 3px;
        align-items: center;
        min-width: 0;
    }
    
    .time-selector select {
        width: auto;
        flex: 1;
        padding: 6px;
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    .time-selector span {
        margin: 0 2px;
        white-space: nowrap;
    }
    
    /* Court selection for mobile - horizontal scrollable row */
    .court-selection {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .court-option {
        flex: 0 0 auto;
        width: 100px;
        min-width: 100px;
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .court-number {
        font-size: 1.5rem;
    }
    
    .court-desc {
        font-size: 0.8rem;
    }
    
    /* Bookings table improvements for mobile */
    .bookings-list {
        padding: 15px;
    }
    
    .booking-item-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .booking-detail {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
    
    .booking-detail:last-child {
        border-bottom: none;
    }
    
    .detail-label {
        font-size: 0.75rem;
        color: #666;
        min-width: 100px;
    }
    
    .detail-value {
        font-size: 0.85rem;
        text-align: right;
        word-break: break-word;
    }
    
    .booking-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .booking-item-id {
        font-size: 0.9rem;
    }
    
    .booking-item-status {
        align-self: flex-start;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    /* Time grid improvements - show all 4 courts with horizontal scroll */
    .schedule {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .time-grid {
        grid-template-columns: 60px repeat(var(--court-count, 4), minmax(70px, 1fr));
        font-size: 0.75rem;
        gap: 3px;
        min-width: 340px; /* 60px (time) + 4*70px (courts) = 340px minimum */
    }
    
    .time-header {
        font-size: 0.8rem;
        padding: 8px 5px;
        white-space: nowrap;
    }
    
    .time-slot {
        min-height: 40px;
        padding: 5px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .court-slot {
        white-space: nowrap;
    }
    
    /* Modal improvements */
    .modal.active {
        padding: 5px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .modal-content {
        max-height: 85vh;
        max-width: 95%;
        width: 100%;
        padding: 20px;
        border-radius: 10px;
    }
    
    .modal-content h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .modal-content .form-group input {
        padding: 14px;
        font-size: 1rem;
    }
    
    .modal-content .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content .form-actions button {
        width: 100%;
        padding: 14px;
    }
    
    /* Footer */
    footer {
        padding: 15px;
        font-size: 0.8rem;
    }
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
    header {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    h1 {
        font-size: 1.1rem;
        padding: 0;
    }
    
    .auth-panel .btn {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    /* Smaller date/time form for small screens */
    .datetime-row {
        gap: 4px !important;
    }
    
    .date-nav {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    #booking-date {
        padding: 4px;
        font-size: 0.75rem;
    }
    
    .time-selector select {
        padding: 4px;
        font-size: 0.7rem;
        min-width: 42px;
    }
    
    .court-selection {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .court-option {
        flex: 0 0 auto;
        width: 85px;
        min-width: 85px;
        padding: 10px 5px;
    }
    
    .court-number {
        font-size: 1.2rem;
    }
    
    .court-desc {
        font-size: 0.7rem;
    }
    
    /* Schedule table horizontal scroll */
    .schedule {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .time-grid {
        grid-template-columns: 50px repeat(var(--court-count, 4), minmax(60px, 1fr));
        font-size: 0.7rem;
        gap: 2px;
        min-width: 290px; /* 50px (time) + 4*60px (courts) = 290px minimum */
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
    }
    
    .booking-form h2, .schedule h2, .bookings-list h2 {
        font-size: 1.3rem;
    }
    
    /* Bookings table for extra small screens */
    .bookings-list {
        padding: 12px;
    }
    
    .booking-item {
        padding: 12px;
    }
    
    .booking-item-details {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .booking-detail {
        padding: 6px 0;
        font-size: 0.8rem;
    }
    
    .detail-label {
        font-size: 0.7rem;
        min-width: 90px;
    }
    
    .detail-value {
        font-size: 0.8rem;
    }
    
    .booking-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .booking-item-id {
        font-size: 0.85rem;
    }
    
    .booking-item-status {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .price-summary {
        padding: 15px;
    }
    
    .price-row {
        font-size: 0.9rem;
    }
    
    .total {
        font-size: 1.1rem;
    }
}

/* Mobile touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn, .modal-btn, .slot-btn, .court-option, .time-slot,
    .admin-tab, .close-modal, .btn-action {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
        padding: 12px 16px;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 14px 12px;
        line-height: 1.5;
    }
    
    .form-group input:focus {
        font-size: 16px;
    }
    
    /* Better touch feedback */
    .btn:active, .modal-btn:active, .slot-btn:active,
    .court-option:active, .time-slot:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    /* Larger checkboxes and radio buttons */
    input[type="checkbox"], input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    /* Improve dropdowns for touch */
    select {
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
}

/* Form optimization for mobile */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        font-size: 0.95rem;
    }
    
    .form-group input, .form-group select, .form-group textarea {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #e0e6ed;
        border-radius: 8px;
        font-size: 1rem;
        background-color: #fff;
        transition: all 0.3s;
    }
    
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
        border-color: #3498db;
        outline: none;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }
    
    /* Form help text */
    .form-help {
        font-size: 0.85rem;
        color: #7f8c8d;
        margin-top: 6px;
        line-height: 1.4;
    }
    
    /* Form actions */
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }
    
    .form-actions button {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Inline form groups for better mobile layout */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    @media (min-width: 480px) {
        .form-row {
            flex-direction: row;
        }
        
        .form-row .form-group {
            flex: 1;
        }
    }
}

/* Improved date and time inputs for mobile */
input[type="date"], input[type="time"], input[type="datetime-local"] {
    min-height: 48px;
}

/* Better file inputs for mobile */
input[type="file"] {
    padding: 12px;
    border: 2px dashed #e0e6ed;
    border-radius: 8px;
    width: 100%;
}

input[type="file"]:focus {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

/* Search inputs optimization */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
}

.search-box button {
    padding: 14px 20px;
    white-space: nowrap;
}

/* Password visibility toggle improvement */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

.password-container {
    position: relative;
}

.password-container input {
    padding-right: 50px;
    width: 100%;
}

/* ====== Enhanced Admin Panel Styles ====== */

/* User table styles */
.users-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.users-table th {
    background-color: #3498db;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.users-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.users-table tr:hover {
    background-color: #e8f4fc;
}

.users-table tr:last-child td {
    border-bottom: none;
}

/* Role badges */
.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background-color: #e74c3c;
    color: white;
}

.role-user {
    background-color: #2ecc71;
    color: white;
}

.role-superadmin {
    background-color: #9b59b6;
    color: white;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-blocked {
    background-color: #f8d7da;
    color: #721c24;
}

.status-inactive {
    background-color: #fff3cd;
    color: #856404;
}

/* User action buttons */
.user-actions {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    flex-direction: row;
    overflow-x: auto;
}

.btn-action {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.btn-block:hover {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.btn-role:hover {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.btn-reset-password:hover {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.btn-edit:hover {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.btn-delete:hover {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Price rules list container - enable horizontal scroll */
.price-rules-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Users table and Price rules table styles */
.users-table,
.price-rules-table {
    min-width: 900px;
}

.users-table th,
.users-table td,
.price-rules-table th,
.price-rules-table td {
    white-space: nowrap;
    padding: 10px 12px;
}

/* Users table specific column widths */
.users-table .user-id {
    width: 50px;
    font-weight: bold;
    color: #6c757d;
}

.users-table .user-login {
    font-weight: 600;
    color: #2c3e50;
}

.users-table .user-role .role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.users-table .user-role .role-badge.role-admin {
    background-color: #d1ecf1;
    color: #0c5460;
}

.users-table .user-role .role-badge.role-user {
    background-color: #d4edda;
    color: #155724;
}

.users-table .user-role .role-badge.role-superadmin {
    background-color: #e8d6f7;
    color: #4a235a;
}

/* Users table status badges */
.users-table .user-status .status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.users-table .user-status .status-badge.status-active {
    background-color: #d4edda;
    color: #155724;
}

.users-table .user-status .status-badge.status-blocked {
    background-color: #f8d7da;
    color: #721c24;
}

.users-table .user-status .status-badge.status-inactive {
    background-color: #fff3cd;
    color: #856404;
}

/* Users table actions column */
.users-table .user-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.users-table .user-actions .btn-action {
    flex: 0 0 auto;
    min-width: 30px;
    padding: 4px 6px;
    font-size: 0.85rem;
    cursor: pointer;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
}

.users-table .user-actions .btn-action:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
}

/* Blocked user row styling */
.users-table .row-blocked {
    opacity: 0.7;
    background-color: #fff5f5;
}

/* Price rules table specific styles */
.price-rules-table .rule-id {
    font-weight: bold;
    color: #6c757d;
}

.price-rules-table .rule-price {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
}

.price-rules-table .rule-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.price-rules-table .rule-actions .btn-action {
    flex: 0 0 auto;
    min-width: 30px;
    padding: 4px 6px;
    font-size: 0.85rem;
    cursor: pointer;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
}

.price-rules-table .rule-actions .btn-action:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
}

.price-rules-table .row-inactive {
    opacity: 0.6;
    background-color: #f9f9f9;
}

/* Admin actions */
.admin-actions {
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f4fc;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* System info */
.system-info {
    margin-top: 30px;
    padding: 20px;
    background: #e8f4fc;
    border-radius: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
}

.info-value {
    font-weight: 700;
    color: #3498db;
    font-size: 1.2rem;
}

/* Booking card enhancements */
.booking-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

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

.booking-id {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.booking-date {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.detail-label {
    font-weight: 600;
    color: #7f8c8d;
}

.detail-value {
    font-weight: 600;
    color: #2c3e50;
}

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

.btn-approve, .btn-reject, .btn-delete-admin {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 100px;
}

.btn-approve {
    background-color: #2ecc71;
    color: white;
}

.btn-approve:hover {
    background-color: #27ae60;
}

.btn-reject {
    background-color: #e74c3c;
    color: white;
}

.btn-reject:hover {
    background-color: #c0392b;
}

.btn-delete-admin {
    background-color: #95a5a6;
    color: white;
}

.btn-delete-admin:hover {
    background-color: #7f8c8d;
}

/* Form footer links */
.form-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #7f8c8d;
}

.form-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-help {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
    font-style: italic;
}

/* Change password button in header */
#change-password-btn {
    background-color: #f39c12;
    border-color: #f39c12;
}

#change-password-btn:hover {
    background-color: #d68910;
    border-color: #d68910;
}

/* Modal form improvements */
.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.modal-content .form-group label i {
    margin-right: 8px;
    color: #3498db;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"],
.modal-content input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Responsive adjustments for admin panel */
@media (max-width: 768px) {
    .users-table,
    .price-rules-table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .users-table th,
    .users-table td,
    .price-rules-table th,
    .price-rules-table td {
        padding: 8px 6px;
    }
    
    .users-table .user-actions .btn-action,
    .price-rules-table .rule-actions .btn-action {
        min-width: 26px;
        padding: 3px 4px;
        font-size: 0.8rem;
    }
    
    .modal-content .users-table th {
        color: #2c3e50;
        font-weight: 700;
        background: #e8f4fc;
    }
    
    .modal-content .users-table td {
        color: #2c3e50;
        font-weight: 500;
    }
    
    .modal-content .role-badge,
    .modal-content .status-badge,
    .modal-content .booking-item-status {
        color: #2c3e50;
        font-weight: 600;
    }
    
    .modal-content .btn-action,
    .modal-content .btn-approve,
    .modal-content .btn-reject,
    .modal-content .btn-delete-admin {
        color: white;
        font-weight: 600;
    }
    
    .modal-content .info-label {
        color: #2c3e50;
        font-weight: 700;
    }
    
    .modal-content .info-value {
        color: #2c3e50;
        font-weight: 600;
    }
    
    .modal-content .booking-card,
    .modal-content .booking-item,
    .modal-content .booking-details {
        color: #2c3e50;
    }
    
    .modal-content .detail-label {
        color: #2c3e50;
        font-weight: 700;
    }
    
    .modal-content .detail-value {
        color: #2c3e50;
        font-weight: 600;
    }
    
    .search-box {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    
    .search-box input {
        padding: 10px 14px;
        font-size: 0.95rem;
        flex: 2; /* Даем больше места полю ввода */
        /* min-width: 0; /* позволяет сжиматься */
    }
    
    .search-box button {
        padding: 10px 14px;
        font-size: 0.95rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto; /* Отменяем min-width: 100% из .modal .btn-secondary */
        flex: 1; /* Кнопка занимает меньше места */
    }
    
    /* Отменяем общие стили кнопок для поисковой кнопки */
    .admin-modal .search-box .btn-secondary {
        min-width: auto !important;
        padding: 10px 14px !important;
        font-size: 0.9rem !important;
    }
}

/* Loading states */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
    font-size: 1.1rem;
}

.error-message {
    text-align: center;
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    margin: 20px 0;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin: 20px 0;
}

/* Animation for status changes */
@keyframes statusChange {
    0% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.status-change {
    animation: statusChange 0.3s ease-out;
}

/* Venue select styles */
.venue-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: auto;
}

.venue-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.venue-select option {
    padding: 8px;
}

.court-selection-hint {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Tooltip for buttons */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
    margin-bottom: -5px;
    z-index: 1000;
}

/* FINAL FIX: Date and Time in one row - SIMPLE FLOAT SOLUTION */
@media (min-width: 769px) {
    /* Name field - full width */
    .booking-form > .form-group:nth-of-type(1) {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Date/Time combined field - full width */
    .booking-form > .form-group:nth-of-type(2) {
        display: block;
        width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
    
    /* Ensure datetime-row displays correctly on desktop */
    .booking-form > .form-group:nth-of-type(2) .datetime-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
        align-items: stretch !important;
        width: 100% !important;
        margin-top: 8px;
    }
    
    /* Date selector on desktop */
    .booking-form > .form-group:nth-of-type(2) .date-selector {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .booking-form > .form-group:nth-of-type(2) .date-selector input[type="date"] {
        flex: 1 !important;
        min-width: 0 !important;
        height: 46px !important;
        width: 100% !important;
    }
    
    /* Time selector on desktop */
    .booking-form > .form-group:nth-of-type(2) .time-selector {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .booking-form > .form-group:nth-of-type(2) .time-selector select {
        flex: 1 !important;
        min-width: 0 !important;
        height: 46px !important;
        width: auto !important;
    }
    
    /* Duration field - clear float */
    .booking-form > .form-group:nth-of-type(3) {
        clear: both;
        width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
    
    /* Ensure name field takes full width on desktop */
    .booking-form > .form-group:nth-of-type(1) {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .booking-form > .form-group:nth-of-type(1) input {
        width: 100%;
    }
}

/* ENHANCED DESKTOP DATE-TIME LAYOUT - Guaranteed single row */
@media (min-width: 769px) {
    /* Force datetime-row to be a single row with proper distribution */
    .booking-form .form-group:nth-of-type(2) .datetime-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 15px !important;
        margin-top: 8px !important;
    }
    
    /* Date selector takes 60% of width */
    .booking-form .form-group:nth-of-type(2) .date-selector {
        flex: 3 1 0% !important;
        min-width: 0 !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    /* Time selector takes 40% of width */
    .booking-form .form-group:nth-of-type(2) .time-selector {
        flex: 2 1 0% !important;
        min-width: 0 !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    /* Ensure date input takes available space */
    .booking-form .form-group:nth-of-type(2) .date-selector input[type="date"] {
        flex: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
        height: 46px !important;
    }
    
    /* Ensure time selects take equal space */
    .booking-form .form-group:nth-of-type(2) .time-selector select {
        flex: 1 !important;
        min-width: 0 !important;
        height: 46px !important;
        width: auto !important;
        font-size: 0.75rem !important; /* Slightly smaller for better 2-digit fit */
    }
    
    /* Colon between hour and minute */
    .booking-form .form-group:nth-of-type(2) .time-selector span {
        margin: 0 5px !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
    }
}

/* Styles for All Bookings tab */
.all-bookings-list {
    margin-top: 20px;
}

.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Table styles for all bookings */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Mobile: ensure table-responsive scrolls properly */
@media (max-width: 768px) {
    .table-responsive {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .table-responsive {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

/* Mobile: ensure bookings-table has minimum width for horizontal scroll */
@media (max-width: 768px) {
    .bookings-table {
        min-width: 650px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 10px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .bookings-table .status-badge {
        min-width: 90px;
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .bookings-table .btn-small {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .bookings-table {
        min-width: 550px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 8px 8px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

.bookings-table thead {
    background-color: #3498db;
    color: white;
}

.bookings-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #2980b9;
}

.bookings-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.bookings-table tbody tr:hover {
    background-color: #f8f9fa;
}

.bookings-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.booking-row.status-pending {
    border-left: 4px solid #f39c12;
}

.booking-row.status-confirmed {
    border-left: 4px solid #2ecc71;
}

.booking-row.status-cancelled {
    border-left: 4px solid #e74c3c;
}

.bookings-table .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    min-width: 120px;
}

.bookings-table .status-pending {
    background-color: #fef5e7;
    color: #b7950b;
}

.bookings-table .status-confirmed {
    background-color: #e8f6f3;
    color: #27ae60;
}

.bookings-table .status-cancelled {
    background-color: #fdedec;
    color: #c0392b;
}

.bookings-table .booking-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.bookings-table .btn-small {
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.bookings-table .btn-small:hover {
    opacity: 0.9;
}

.bookings-table .btn-success {
    background-color: #2ecc71;
    color: white;
}

.bookings-table .btn-danger {
    background-color: #e74c3c;
    color: white;
}

.bookings-table .btn-secondary {
    background-color: #95a5a6;
    color: white;
}

/* Цвета текста в таблице бронирований */
.bookings-table td {
    color: #000000; /* Чёрный текст для всех ячеек */
}
.bookings-table .booking-date {
    color: #ffffff !important; /* Белый цвет для даты с приоритетом */
    font-weight: 600;
}

.booking-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #3498db;
    transition: transform 0.2s, box-shadow 0.2s;
}

.booking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.booking-card.status-pending {
    border-left-color: #f39c12;
}

.booking-card.status-confirmed {
    border-left-color: #2ecc71;
}

.booking-card.status-cancelled {
    border-left-color: #e74c3c;
}

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

.booking-id {
    font-weight: bold;
    color: #2c3e50;
}

.booking-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.booking-status.status-pending {
    background-color: #fef5e7;
    color: #f39c12;
}

.booking-status.status-confirmed {
    background-color: #eafaf1;
    color: #27ae60;
}

.booking-status.status-cancelled {
    background-color: #fdedec;
    color: #c0392b;
}

.booking-details p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #34495e;
}

.booking-details strong {
    color: #2c3e50;
    min-width: 120px;
    display: inline-block;
}

.booking-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.booking-actions .btn-small {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-small.btn-success {
    background-color: #2ecc71;
    border-color: #27ae60;
}

.btn-small.btn-danger {
    background-color: #e74c3c;
    border-color: #c0392b;
}

.btn-small.btn-secondary {
    background-color: #95a5a6;
    border-color: #7f8c8d;
}

/* REMOVED: Old MOBILE HEADER WIDTH FIX block that caused header to be wider than screen.
   The header width/padding is now handled in the main Mobile Styles section below. */

/* ========== Venues Management Styles ========== */

.venues-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.venues-table th {
    background: #2c3e50;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.venues-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.venues-table tr:hover {
    background: #f8f9fa;
}

.venues-table .status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.venues-table .status-active {
    background: #d4edda;
    color: #155724;
}

.venues-table .status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.venue-actions-cell {
    white-space: nowrap;
}

.venue-actions-cell .btn-action {
    margin: 0 2px;
}

.venue-admins-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-form-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.venue-form-container h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

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

.venue-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.venue-form-container input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.venue-form-container .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.venue-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.venues-list h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Price rule venue selector */
#price-rule-venue {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

/* Responsive venues table */
@media (max-width: 768px) {
    .venues-table {
        font-size: 13px;
    }
    
    .venues-table th,
    .venues-table td {
        padding: 8px 10px;
    }
    
    .venue-admins-cell {
        max-width: 120px;
    }
}

/* =============================================
   MOBILE UI ENHANCEMENTS
   Bottom Navigation, Drag-to-Close, Pull-to-Refresh, Swipe
   ============================================= */

/* Bottom Navigation Bar - Mobile Only */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 env(safe-area-inset-bottom, 0);
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    border: none;
    background: none;
    color: #95a5a6;
    font-size: 0.65rem;
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 4px 0;
    position: relative;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.6rem;
    line-height: 1;
}

.mobile-bottom-nav .nav-item.active {
    color: #3498db;
}

.mobile-bottom-nav .nav-item.active i {
    color: #3498db;
}

.mobile-bottom-nav .nav-item .badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(calc(50% + 12px));
    background: #e74c3c;
    color: white;
    font-size: 0.55rem;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 700;
}

/* Drag Handle for Bottom Sheet Modals */
.modal-drag-handle {
    display: none;
    width: 40px;
    height: 5px;
    background: #ddd;
    border-radius: 3px;
    margin: 0 auto 15px;
    cursor: grab;
    touch-action: none;
    position: relative;
    z-index: 5;
}

.modal-drag-handle:active {
    cursor: grabbing;
}

/* Pull-to-Refresh Indicator */
.pull-to-refresh-indicator {
    display: none;
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.85rem;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 5;
    transition: opacity 0.2s ease;
}

.pull-to-refresh-indicator.visible {
    display: flex;
}

.pull-to-refresh-indicator .ptr-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: ptr-spin 0.6s linear infinite;
}

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

/* Swipeable Booking Items */
.booking-item.swipeable {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.booking-item-swipe-actions {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    transition: right 0.3s ease;
    cursor: pointer;
}

.booking-item-swipe-actions i {
    font-size: 1.2rem;
    margin-right: 5px;
}

.booking-item.swiped .booking-item-swipe-actions {
    right: 0;
}

.booking-item-content {
    position: relative;
    z-index: 1;
    background: white;
    transition: transform 0.3s ease;
}

.booking-item.swiped .booking-item-content {
    transform: translateX(-100px);
}

/* Mobile Tab Content Sections */
.mobile-tab-content {
    display: none;
}

.mobile-tab-content.active {
    display: block;
}

/* Mobile Header with Hamburger */
.mobile-header-controls {
    display: none;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu-overlay.visible {
    display: block;
    pointer-events: auto;
}


.mobile-auth-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    flex-direction: column;
    padding: 20px;
    padding-top: env(safe-area-inset-top, 20px);
    transition: right 0.3s ease;
    overflow-y: auto;
    pointer-events: none;
}

.mobile-auth-menu.open {
    right: 0;
    pointer-events: auto;
}

.mobile-auth-menu .close-menu-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 20px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-auth-menu .menu-user-info {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.mobile-auth-menu .menu-user-info .menu-user-role {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-top: 4px;
}

.mobile-auth-menu .menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: none;
    color: #2c3e50;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
}

.mobile-auth-menu .menu-btn i {
    width: 20px;
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.mobile-auth-menu .menu-btn:hover,
.mobile-auth-menu .menu-btn:active {
    background: #f5f6fa;
}

.mobile-auth-menu .menu-btn.danger {
    color: #e74c3c;
}

.mobile-auth-menu .menu-btn.danger i {
    color: #e74c3c;
}

/* Mobile-specific utility classes */
.mobile-only {
    display: none !important;
}

/* Improved touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .modal-btn,
    .court-option,
    .date-nav,
    .slots-increment-btn,
    .slots-decrement-btn,
    .nav-item,
    .menu-btn,
    .close-menu-btn,
    .booking-item {
        min-height: 44px;
    }
    
    input, select, textarea, button {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* Container and header padding fix for mobile */
    .container {
        padding: 10px;
    }
    
    header {
        padding: 12px 16px;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    /* Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
    }
    
    body.has-bottom-nav {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0));
    }
    
    /* Drag Handle */
    .modal-drag-handle {
        display: block;
    }
    
    /* Mobile Header Controls */
    .mobile-header-controls {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 1.2rem;
        border-radius: 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s ease;
    }
    
    .hamburger-btn:active {
        background: rgba(255, 255, 255, 0.3);
    }
    
    /* Mobile Auth Menu */
    .mobile-auth-menu {
        display: flex;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    /* Hide desktop auth panel on mobile */
    .auth-panel {
        display: none !important;
    }
    
    /* Header adjustments for mobile */
    .header-top {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    
    header h1 {
        font-size: 1.1rem !important;
        text-align: left !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    header h1 i {
        margin-right: 6px;
        font-size: 1.1rem;
    }
    
    /* Mobile Tab Content */
    .mobile-tab-content {
        display: none;
    }
    
    .mobile-tab-content.active {
        display: block;
    }
    
    /* Mobile tab panels - right panel (schedule) visible by default as fallback */
    .left-panel {
        display: none;
    }
    
    .right-panel {
        display: block;
        min-width: 0; /* Allow shrinking when content is wider than viewport */
        overflow: auto; /* Allow horizontal scroll for wide schedule table */
        -webkit-overflow-scrolling: touch;
    }
    
    .left-panel.mobile-active {
        display: block;
    }
    
    .right-panel.mobile-active {
        display: block;
    }
    
    /* Schedule container — allow horizontal scroll if time grid is wider than screen */
    .schedule {
        position: relative;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .pull-to-refresh-indicator {
        display: none;
    }
    
    .pull-to-refresh-indicator.visible {
        display: flex;
    }
    
    /* Booking items swipe hint */
    .booking-item {
        position: relative;
        overflow: hidden;
    }
    
    .booking-item .swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #e74c3c;
        font-size: 0.7rem;
        opacity: 0.3;
        pointer-events: none;
    }
    
    /* Modal bottom sheet improvements */
    .modal.active {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        flex-direction: column !important;
        touch-action: pan-y !important; /* Allow vertical touch scrolling on mobile */
    }
    
    .modal-content {
        max-width: 100% !important;
        max-height: 90vh !important;
        width: 100% !important;
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 10px)) !important;
        border-radius: 20px 20px 0 0 !important;
        margin-top: auto !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2) !important;
        animation: slideUp 0.3s ease-out !important;
        position: relative !important;
        overflow-y: auto !important;
        background: white !important;
    }
    
    /* Admin modal specific */
    .admin-modal .modal-content {
        max-height: 95vh !important;
        padding: 15px 15px calc(15px + env(safe-area-inset-bottom, 10px)) !important;
    }
    
    /* Confirmation modal */
    #confirmation-modal .modal-content {
        max-width: 90% !important;
        width: 90% !important;
        border-radius: 16px !important;
        margin: auto !important;
        padding: 25px !important;
    }
    
    /* My Bookings modal */
    #my-bookings-modal .modal-content {
        max-height: 85vh !important;
    }
    
    /* Edit Booking modal */
    #edit-booking-modal .modal-content {
        max-height: 95vh !important;
    }
    
    /* Mobile-only elements */
    .mobile-only {
        display: block !important;
    }
    
    /* Footer spacing for bottom nav */
    footer {
        padding-bottom: calc(15px + 60px + env(safe-area-inset-bottom, 0)) !important;
    }
    
    /* Schedule improvements */
    .time-grid {
        grid-template-columns: 60px repeat(var(--court-count, 4), minmax(60px, 1fr)) !important;
        gap: 3px !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .time-slot {
        min-height: 36px !important;
        padding: 4px 3px !important;
        font-size: 0.75rem !important;
    }
    
    .time-header {
        font-size: 0.75rem !important;
        padding: 5px 3px !important;
    }
    
    /* Prevent grid cells from expanding beyond container */
    .time-slot,
    .court-slot,
    .court-header,
    .header-cell {
        min-width: 0 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Date navigation compact */
    .date-navigation {
        display: flex;
        gap: 8px;
    }
    
    .date-navigation .btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Legend compact */
    .legend {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
    }
    
    .legend-item {
        font-size: 0.7rem;
    }
    
    .legend-color {
        width: 10px;
        height: 10px;
    }
    
    /* Booking form improvements */
    .booking-form h2 {
        font-size: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .price-summary {
        padding: 14px;
    }
    
    .price-row {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    .price-row.total {
        font-size: 1.05rem;
    }
    
    /* Info panel compact */
    .info-panel {
        padding: 12px;
    }
    
    .info-panel h3 {
        font-size: 1rem;
    }
    
    .info-panel ul li {
        font-size: 0.85rem;
        padding: 4px 0;
    }
    
    /* Bookings list */
    .bookings-list h2 {
        font-size: 1.1rem;
    }
    
    .booking-item {
        padding: 12px 14px;
    }
    
    .booking-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .booking-item-id {
        font-size: 0.85rem;
    }
    
    .booking-item-status {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .booking-item-details {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .booking-detail {
        padding: 4px 0;
        font-size: 0.8rem;
    }
    
    .detail-label {
        font-size: 0.7rem;
        min-width: 80px;
    }
    
    .detail-value {
        font-size: 0.8rem;
    }
    
    /* Court selection scrollable */
    .court-selection {
        gap: 6px;
        padding-bottom: 8px;
    }
    
    .court-option {
        width: 85px;
        min-width: 85px;
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .court-number {
        font-size: 1.3rem;
    }
    
    .court-desc {
        font-size: 0.7rem;
    }
    
    /* Slots control compact */
    .slots-increment-control {
        gap: 8px;
    }
    
    .slots-increment-btn,
    .slots-decrement-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    #slots-input {
        width: 50px;
        height: 40px;
        font-size: 1rem;
    }
    
    .selected-slots {
        font-size: 0.8rem;
    }
    
    /* Venue select */
    .venue-select {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Book button */
    #book-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    /* Auth notice */
    .auth-notice {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    /* Date display */
    .date-display {
        font-size: 0.8rem;
        margin-top: 4px;
    }
    
    /* Ensure container and its children can shrink properly */
    .container {
        min-width: 0;
    }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    header {
        padding: 10px 14px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .mobile-bottom-nav {
        height: 52px;
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 1.2rem;
    }
    
    .mobile-bottom-nav .nav-item span {
        font-size: 0.65rem;
    }
    
    body.has-bottom-nav {
        padding-bottom: calc(52px + env(safe-area-inset-bottom, 0));
    }
    
    header h1 {
        font-size: 1rem !important;
    }
    
    header h1 i {
        font-size: 1rem;
    }
    
    .hamburger-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 15px 15px calc(15px + env(safe-area-inset-bottom, 8px)) !important;
        border-radius: 15px 15px 0 0 !important;
    }
    
    .modal-content h2 {
        font-size: 1.3rem !important;
    }
    
    .court-option {
        width: 75px;
        min-width: 75px;
        padding: 8px 5px;
    }
    
    .court-number {
        font-size: 1.1rem;
    }
    
    .time-grid {
        grid-template-columns: 50px repeat(var(--court-count, 4), minmax(60px, 1fr)) !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .time-slot {
        min-height: 34px !important;
        font-size: 0.78rem !important;
    }
    
    .time-header {
        font-size: 0.78rem !important;
        padding: 4px 3px !important;
    }
    
    /* Prevent grid cells from expanding beyond container */
    .time-slot,
    .court-slot,
    .court-header,
    .header-cell {
        min-width: 0 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .booking-item {
        padding: 10px 12px;
    }
    
    .booking-form h2 {
        font-size: 1.1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .price-summary {
        padding: 12px;
    }
    
    .price-row {
        font-size: 0.88rem;
    }
    
    .price-row.total {
        font-size: 1rem;
    }
    
    .info-panel ul li {
        font-size: 0.82rem;
    }
    
    .bookings-list h2 {
        font-size: 1rem;
    }
    
    footer {
        font-size: 0.78rem !important;
    }
    
    .date-navigation .btn {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .legend-item {
        font-size: 0.65rem;
    }
    
    .auth-notice {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(60px + env(safe-area-inset-bottom));
    }
    
    body.has-bottom-nav {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
    
    .modal-content {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 10px));
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh !important;
    }
    
    .admin-modal .modal-content {
        max-height: 90vh !important;
    }
    
    .mobile-bottom-nav {
        height: 50px;
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 1.1rem;
    }
    
    .mobile-bottom-nav .nav-item span {
        font-size: 0.55rem;
    }
    
    body.has-bottom-nav {
        padding-bottom: calc(50px + env(safe-area-inset-bottom, 0));
    }
}

/* Dark mode support for bottom nav */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
        background: #1a1a2e;
        border-top-color: #2d2d44;
    }
    
    .mobile-auth-menu {
        background: #1a1a2e;
    }
    
    .mobile-auth-menu .close-menu-btn {
        color: #ecf0f1;
    }
    
    .mobile-auth-menu .menu-btn {
        color: #ecf0f1;
    }
    
    .mobile-auth-menu .menu-btn i {
        color: #95a5a6;
    }
    
    .mobile-auth-menu .menu-btn:hover,
    .mobile-auth-menu .menu-btn:active {
        background: #2d2d44;
    }
    
    .mobile-auth-menu .menu-user-info {
        color: #ecf0f1;
        border-bottom-color: #2d2d44;
    }
    
    .mobile-menu-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .pull-to-refresh-indicator {
        background: rgba(26, 26, 46, 0.95);
        color: #95a5a6;
    }
}