/* ============================================================================
  Mobile responsive key breakpoints.
   ============================================================================ */

   /* Tablet */
@media (max-width: 768px) {
    .topbar-container {
        flex-direction: column;
        padding: 12px;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* Or make it a dropdown */
    }
}

/* ============================================================================
   TIME PICKER MODAL
   15-minute interval time selection
   ============================================================================ */

.time-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.time-picker-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.time-picker-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e1e4e8;
    position: relative;
}

.time-picker-header h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #1a1a1a;
}

.time-picker-date {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.time-picker-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s;
}

.time-picker-close:hover {
    background: #f0f0f0;
    color: #333;
}

.time-picker-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

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

.time-slot {
    padding: 12px 8px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px) {
    .time-picker-modal {
        margin: 0 12px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}