:root {
    --primary-green: #166647;
    --light-green: #f0f7f4;
    --background-gray: #f8f9fa;
    --border-gray: #e9ecef;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body {
    display: flex;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-gray);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden; 
}

* {
    box-sizing: border-box;
}

.sidebar {
    width: 260px;
    background-color: var(--primary-green);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.sidebar-header {
    margin-bottom: 30px;
    padding-left: 10px;
}
.sidebar-header h3 {
    margin: 0;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}
.sidebar-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.sidebar-nav a.active {
    background-color: var(--white);
    color: var(--primary-green);
    font-weight: 600;
}
.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.main-content {
    flex-grow: 1;
    padding: 30px;
    width: 100%;
    height: 100vh; 
    overflow-y: auto; 
    overflow-x: hidden;
    padding-bottom: 150px; 
}

.main-content::-webkit-scrollbar {
    width: 8px;
}
.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.main-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.main-content::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.main-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    margin-right: auto;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-overlay.active {
    display: block;
    opacity: 1;
}

.logout-btn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    transition: background-color 0.2s;
    font-size: 0;
    font-family: 'Poppins', sans-serif;
}
.logout-btn:hover {
    background-color: var(--border-gray);
}
.logout-btn i {
    margin-right: 8px;
    font-size: 16px;
}
.logout-btn::after {
    content: 'uColab';
    font-size: 16px;
    font-weight: 600;
}

.bookings-section {
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
}

.section-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

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

.download-dropdown {
    position: relative;
}

.download-caret {
    font-size: 0.8rem;
}

.download-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 40;
}

.download-dropdown.open .download-dropdown-menu {
    display: flex;
}

.download-option {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-dark);
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.download-option:hover {
    background: var(--light-green);
    color: var(--primary-green);
}

.btn-close-schedule {
    padding: 12px 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.btn-close-schedule:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.bookings-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.pending {
    background: #fff3cd;
    color: #856404;
}

.stat-icon.confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.stat-icon.completed {
    background: #d4edda;
    color: #155724;
}

.stat-icon.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.filters-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

.search-group {
    min-width: 250px;
    flex: 2;
}

.filter-group label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
    width: 100%;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #166647;
}

.btn-reset-filters {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    white-space: nowrap;
}

.btn-reset-filters:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

.table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch; 
}

.table-container::-webkit-scrollbar {
    height: 8px;
}
.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.table-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; 
}

.bookings-table thead {
    background: #f8f9fa;
}

.bookings-table th {
    padding: 15px 12px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.bookings-table td {
    padding: 15px 12px;
    font-size: 0.9rem;
    color: #1a1a1a;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.bookings-table tbody tr {
    transition: background-color 0.2s;
}

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

.loading-row {
    text-align: center;
    padding: 40px !important;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.status-badge.confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

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

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

.status-badge.rescheduled {
    background: #e7e3ff;
    color: #5a3fb3;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-view {
    background: #e7f3ff;
    color: #0c5aa6;
}

.btn-view:hover {
    background: #cce5ff;
}

.btn-reschedule {
    background: #fff3cd;
    color: #856404;
}

.btn-reschedule:hover {
    background: #ffe69c;
}

.btn-confirm {
    background: #d4edda;
    color: #155724;
}

.btn-confirm:hover {
    background: #c3e6cb;
}

.btn-cancel {
    background: #f8d7da;
    color: #721c24;
}

.btn-cancel:hover {
    background: #f5c6cb;
}

.btn-complete {
    background: #d1ecf1;
    color: #0c5460;
}

.btn-complete:hover {
    background: #bee5eb;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

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

.modal-header h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.booking-info-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.booking-info-display p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #1a1a1a;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #166647;
}

.form-group textarea {
    resize: vertical;
}

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

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: #166647;
    color: #fff;
}

.btn-primary:hover {
    background: #124d35;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 102, 71, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.detail-item span,
.detail-item p {
    font-size: 0.95rem;
    color: #1a1a1a;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.closed-schedule-list {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.closed-schedule-list h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.closed-schedule-item {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #ffc107;
}

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

.closed-schedule-item .schedule-date {
    font-weight: 600;
    color: #856404;
}

.closed-schedule-item .schedule-time {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.closed-schedule-item .schedule-reason {
    font-size: 0.9rem;
    color: #1a1a1a;
    font-style: italic;
}

.btn-remove-closure {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-remove-closure:hover {
    background: #c82333;
}

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

@media (max-width: 1200px) {
    .bookings-table {
        font-size: 0.85rem;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 768px) {
    body {
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%);
        width: 260px;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        padding: 20px;
        width: 100%;
        padding-bottom: 120px; 
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-header {
        justify-content: space-between;
    }

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

    .section-header h1 {
        font-size: 1.6rem;
    }
    
    .header-actions {
        width: 100%;
    }

    .btn-close-schedule {
        width: 100%;
        justify-content: center;
    }
    
    .bookings-stats {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group, .search-group {
        width: 100%;
        min-width: unset;
    }

    .btn-reset-filters {
        width: 100%;
        justify-content: center;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item.full-width {
        grid-column: 1;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }

    .form-actions {
        flex-direction: column-reverse; 
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bookings-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Calendar View Modal Styles */
.modal-large {
    padding: 20px;
}

.modal-content-large {
    max-width: 95vw;
    width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
}

.btn-view-calendar {
    padding: 12px 24px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-download-data {
    padding: 12px 24px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-download-data:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-view-calendar:hover {
    background-color: #0e4d32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 102, 71, 0.3);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-green);
    border-radius: 8px;
}

.calendar-controls h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-green);
}

.btn-nav {
    padding: 10px 20px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: #0e4d32;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
}

.legend-color.available {
    background-color: #fff;
}

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

.legend-color.closed {
    background-color: #ffebee;
}

.calendar-view-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    min-width: 1200px;
}

.calendar-table thead {
    background-color: var(--primary-green);
    color: var(--white);
}

.calendar-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #0e4d32;
}

.time-column {
    width: 120px;
    background-color: #0e4d32;
}

.day-column {
    min-width: 180px;
}

.calendar-table td {
    padding: 12px;
    border: 1px solid var(--border-gray);
    text-align: center;
    vertical-align: top;
    min-height: 80px;
    height: 80px;
    background: #f0f9f5;;
}

.calendar-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.time-slot-cell {
    font-weight: 500;
    color: black;
    
}

.calendar-slot {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 60px;
}

.calendar-slot.available {
  background: #f0f9f5;
}

.calendar-slot.available:hover {
    background-color: #f0f7f4;
}

.calendar-slot.booked {
    background-color: #d4e7ff;
    border-left: 4px solid #2196f3;
}

.calendar-slot.booked:hover {
    background-color: #bbdefb;
}

.calendar-slot.closed {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.booking-info {
    padding: 8px;
    text-align: left;
}

.booking-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.booking-service {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.booking-status {
    font-size: 11px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

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

.booking-status.confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
}

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

.closed-info {
    padding: 8px;
    color: #d32f2f;
    font-weight: 500;
    font-size: 13px;
}

.closed-reason {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

@media (max-width: 1200px) {
    .modal-content-large {
        width: 95vw;
    }
    
    .calendar-table {
        min-width: 900px;
    }
    
    .day-column {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .calendar-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .download-dropdown,
    .download-dropdown-menu {
        width: 100%;
    }

    .download-dropdown-menu {
        min-width: 0;
        position: static;
    }
    
    .btn-download-data,
    .btn-view-calendar,
    .btn-close-schedule {
        width: 100%;
        justify-content: center;
    }
}

/* Manual Reschedule Modal Styles */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.alert-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

.alert i {
  font-size: 20px;
}

.affected-bookings-list {
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.affected-booking-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.booking-current-info {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  border-left: 4px solid #ff4444;
}

.booking-current-info h4 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
}

.booking-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  font-size: 14px;
}

.booking-info-item {
  display: flex;
  gap: 8px;
}

.booking-info-item strong {
  color: #555;
  min-width: 80px;
}

.booking-new-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.booking-new-schedule .form-group {
  margin-bottom: 0;
}

.booking-new-schedule label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.booking-new-schedule input,
.booking-new-schedule select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.booking-new-schedule input:focus,
.booking-new-schedule select:focus {
  outline: none;
  border-color: #166647;
  box-shadow: 0 0 0 3px rgba(22, 102, 71, 0.1);
}

.reschedule-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  display: inline-block;
}

.reschedule-status.pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.reschedule-status.ready {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.reschedule-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-check-availability {
  padding: 8px 16px;
  background: #17a2b8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.btn-check-availability:hover {
  background: #138496;
  transform: translateY(-1px);
}

.btn-check-availability:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

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

/* Reschedule Layout with Calendar */
.reschedule-layout {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 25px;
  margin-bottom: 20px;
}

.reschedule-calendar-section {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 20px;
  height: fit-content;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
}

.reschedule-calendar-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #166647;
}

.reschedule-bookings-section {
  overflow-y: auto;
  max-height: calc(90vh - 150px);
}

.reschedule-bookings-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  position: sticky;
  top: 0;
  background: #f8f9fa;
  padding: 10px 0;
  z-index: 1;
}

/* Mini Calendar Controls */
.mini-calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mini-calendar-controls h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.btn-nav-mini {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #166647;
  font-size: 14px;
}

.btn-nav-mini:hover {
  background: #166647;
  color: white;
  border-color: #166647;
}

/* Mini Calendar */
.mini-calendar-container {
  margin-bottom: 20px;
}

.mini-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin-bottom: 5px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  padding: 8px 0;
}

.mini-calendar-days {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.mini-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  background: white;
}

.mini-calendar-day:hover {
  background: #f0f0f0;
  border-color: #166647;
}

.mini-calendar-day.disabled {
  background: #f8f9fa;
  color: #ccc;
  cursor: not-allowed;
  border-color: #f0f0f0;
}

.mini-calendar-day.disabled:hover {
  background: #f8f9fa;
  border-color: #f0f0f0;
}

.mini-calendar-day.closed-day {
  background: #ffe0e0;
  border-color: #ff4444;
  color: #cc0000;
  cursor: not-allowed;
}

.mini-calendar-day.closed-day:hover {
  background: #ffcccc;
  border-color: #ff2222;
}

.mini-calendar-day.selected-reschedule {
  background: #166647;
  color: white;
  border-color: #166647;
  font-weight: 700;
}

.mini-calendar-day.has-slots {
  background: #e8f5e9;
  border-color: #4caf50;
  font-weight: 600;
}

.mini-calendar-day.empty {
  border: none;
  background: transparent;
  cursor: default;
}

/* Time Slots in Reschedule */
.time-slots-reschedule {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.time-slots-reschedule h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

#selectedDateReschedule {
  color: #166647;
}

.time-slots-grid-reschedule {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.time-slot-reschedule {
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: white;
}

.time-slot-reschedule:hover {
  background: #f0f9f0;
  border-color: #166647;
}

.time-slot-reschedule.booked {
  background: #f5f5f5;
  border-color: #ddd;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.time-slot-reschedule.booked:hover {
  background: #f5f5f5;
  border-color: #ddd;
}

.time-slot-reschedule.closed {
  background: #ffe0e0;
  border-color: #ff4444;
  color: #cc0000;
  cursor: not-allowed;
}

.time-slot-reschedule.closed:hover {
  background: #ffe0e0;
  border-color: #ff4444;
}

.time-slot-reschedule.selected-time {
  background: #166647;
  color: white;
  border-color: #166647;
  font-weight: 700;
}

/* Update booking item for compact view */
.affected-booking-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
}

.booking-current-info {
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  border-left: 4px solid #ff4444;
}

.booking-current-info h4 {
  color: #333;
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.booking-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-size: 13px;
}

.booking-assigned-schedule {
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
}

.booking-assigned-schedule h5 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #2e7d32;
  font-weight: 600;
}

.assigned-info {
  font-size: 13px;
  color: #1b5e20;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assigned-info strong {
  font-weight: 600;
}

.btn-reassign {
  margin-top: 10px;
  padding: 6px 12px;
  background: #ff9800;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reassign:hover {
  background: #f57c00;
}

@media (max-width: 1200px) {
  .reschedule-layout {
    grid-template-columns: 1fr;
  }
  
  .reschedule-calendar-section {
    position: relative;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .time-slots-grid-reschedule {
    grid-template-columns: 1fr;
  }
  
  .mini-calendar-weekdays {
    font-size: 11px;
  }
  
  .mini-calendar-day {
    font-size: 12px;
  }
}
