/* ==================== RESPONSIVE DESIGN FOR MOBILE ==================== */

/* Desktop - Hide mobile elements */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .dashboard-sidebar {
        position: static !important;
        left: 0 !important;
        width: 250px !important;
        height: auto !important;
        box-shadow: none !important;
        border-right: 1px solid #e5e7eb;
    }
    
    .sidebar-header {
        display: none !important;
    }
    
    .sidebar-menu {
        display: block !important;
    }
}

/* Tablet & Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Base Styles */
    body {
        font-size: 15px;
        padding-top: 60px; /* Space for fixed header */
    }
    
    .container {
        padding: 0 16px !important;
        max-width: 100%;
    }
    
    /* ========== HEADER ========== */
    .header,
    .dashboard-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .header-content {
        padding: 12px 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }
    
    /* Mobile Menu Toggle Button - Hamburger (Order 1) */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        order: 1 !important;
        color: #667eea;
        font-size: 22px;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #f3f4f6;
        border-radius: 8px;
    }
    
    .mobile-menu-toggle.active {
        color: #764ba2;
    }
    
    /* Logo (Order 2) */
    .logo {
        flex: 1 !important;
        min-width: 0;
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px;
    }
    
    .logo-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        flex-shrink: 0;
    }
    
    .logo-text {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .logo-text h1 {
        font-size: 18px !important;
        line-height: 1.2;
        margin: 0;
    }
    
    .logo-text span {
        font-size: 11px !important;
        line-height: 1.2;
        margin: 0;
    }
    
    /* Navigation - Hide on mobile, show on desktop */
    .nav {
        display: none !important;
    }
    
    /* Header Actions & CTA (Order 3) */
    .header-actions,
    .header-cta {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        order: 3 !important;
        flex-shrink: 0 !important;
    }
    
    /* Notifications */
    .notifications,
    .notification-icon,
    .notification-btn {
        position: relative;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #374151;
        font-size: 20px;
        cursor: pointer;
        background: transparent;
        border: none;
        transition: all 0.3s ease;
        padding: 0;
    }
    
    .notification-btn:hover,
    .notification-icon:hover {
        background: #f3f4f6;
        border-radius: 8px;
    }
    
    .notification-badge,
    .notification-icon .badge {
        position: absolute;
        top: 2px;
        right: 2px;
        background: #ef4444;
        color: white;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 10px;
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }
    
    .header-cta .phone {
        display: none !important;
    }
    
    /* User Menu - Avatar only */
    .user-menu {
        position: relative;
        flex-shrink: 0;
    }
    
    .user-menu .user-info {
        padding: 0 !important;
        background: transparent !important;
        cursor: pointer;
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
    }
    
    .user-menu .user-info .user-details {
        display: none !important; /* Hide username on mobile */
    }
    
    .user-menu .avatar,
    .user-menu .avatar-circle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        flex-shrink: 0 !important;
    }
    
    /* Dropdown menu for mobile */
    .user-menu .dropdown-menu {
        position: fixed !important;
        right: 10px !important;
        left: auto !important;
        top: 60px !important;
        min-width: 240px !important;
        max-width: calc(100vw - 20px) !important;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.3s ease;
        z-index: 1001;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Auth buttons */
    .auth-buttons {
        display: flex;
        gap: 8px;
    }
    
    .auth-buttons a {
        padding: 10px 16px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }
    
    /* ========== DASHBOARD ========== */
    .dashboard-body,
    body.dashboard-body {
        padding-top: 64px !important;
    }
    
    .dashboard-container {
        padding: 20px 0 !important;
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 64px);
    }
    
    .dashboard-header {
        margin-bottom: 24px;
        text-align: center;
    }
    
    .dashboard-header h1 {
        font-size: 24px !important;
        margin-bottom: 8px;
    }
    
    .dashboard-header p {
        font-size: 14px;
    }
    
    /* Dashboard Layout */
    .dashboard-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }
    
    /* Content Sections */
    .content-section {
        display: none;
        width: 100%;
    }
    
    .content-section.active {
        display: block !important;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .section-header h2 {
        font-size: 24px !important;
        margin-bottom: 8px;
        color: #1a1a1a;
    }
    
    .section-header p {
        font-size: 14px;
        color: #6b7280;
    }
    
    /* Sidebar - Transform to hamburger menu */
    .dashboard-sidebar {
        position: fixed !important;
        top: 60px;
        left: -280px;
        width: 280px !important;
        height: calc(100vh - 60px);
        background: white;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        padding: 0;
        margin: 0 !important;
        z-index: 999;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    
    .dashboard-sidebar.mobile-open {
        left: 0;
    }
    
    /* Sidebar overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        backdrop-filter: blur(2px);
    }
    
    .sidebar-overlay.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Sidebar header */
    .sidebar-header {
        padding: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: 600;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-menu {
        display: flex;
        flex-direction: column !important;
        gap: 0;
        padding: 0;
    }
    
    .sidebar-menu a {
        padding: 16px 20px !important;
        border-radius: 0 !important;
        font-size: 15px !important;
        border-left: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
        background: white;
        color: #374151;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .sidebar-menu a:hover {
        background: #f9fafb;
        padding-left: 24px !important;
        color: #667eea;
    }
    
    .sidebar-menu a.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-left: 4px solid #764ba2 !important;
    }
    
    .sidebar-menu a i {
        width: 20px;
        text-align: center;
        margin-right: 0;
    }
    
    /* Main Content */
    .dashboard-main {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Stats Grid - 3 columns on mobile */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
        text-align: center !important;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stat-card .icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
        margin: 0 auto 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px;
    }
    
    .stat-card h3 {
        font-size: 24px !important;
        margin-bottom: 4px !important;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .stat-card p {
        font-size: 11px !important;
        line-height: 1.3;
        margin: 0;
        color: #6b7280;
    }
    
    .stat-card .stat-label {
        font-size: 11px !important;
    }
    
    /* Actions Grid */
    .actions-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .action-card {
        padding: 20px !important;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .action-card .icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
    
    .action-card h3 {
        font-size: 18px !important;
    }
    
    .action-card p {
        font-size: 14px;
    }
    
    /* ========== TELEMEDICINE / KHÁM TỪ XA ========== */
    .telemedicine-section,
    .section-content {
        padding: 16px !important;
    }
    
    .telemedicine-section h2 {
        font-size: 24px !important;
        margin-bottom: 16px;
        text-align: center;
    }
    
    .telemedicine-section p {
        font-size: 14px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Zoom Meeting Card */
    .zoom-meeting-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 16px;
        padding: 24px 20px !important;
        color: white;
        margin-bottom: 20px;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }
    
    .zoom-meeting-card h3 {
        font-size: 20px !important;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .zoom-meeting-card p {
        font-size: 14px;
        text-align: center;
        margin-bottom: 16px;
        opacity: 0.95;
    }
    
    .zoom-info {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        backdrop-filter: blur(10px);
    }
    
    .zoom-info p {
        font-size: 13px;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .zoom-info strong {
        font-weight: 600;
    }
    
    /* Zoom Button */
    .zoom-btn,
    .btn-zoom {
        width: 100% !important;
        padding: 14px 20px !important;
        background: white !important;
        color: #667eea !important;
        border: none;
        border-radius: 12px;
        font-size: 15px !important;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .zoom-btn:active,
    .btn-zoom:active {
        transform: scale(0.98);
    }
    
    .zoom-btn i,
    .btn-zoom i {
        font-size: 18px;
    }
    
    /* Instructions List */
    .instructions,
    .zoom-instructions {
        background: white;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .instructions h4,
    .zoom-instructions h4 {
        font-size: 16px;
        margin-bottom: 12px;
        color: #374151;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .instructions ol,
    .zoom-instructions ol,
    .instructions ul,
    .zoom-instructions ul {
        padding-left: 20px;
        margin: 0;
    }
    
    .instructions li,
    .zoom-instructions li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
        color: #374151;
    }
    
    /* Tips Section */
    .tips-section {
        background: #f9fafb;
        border-radius: 16px;
        padding: 20px;
        border-left: 4px solid #667eea;
    }
    
    .tips-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
        color: #667eea;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .tips-section ul {
        padding-left: 20px;
        margin: 0;
    }
    
    .tips-section li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 8px;
        color: #6b7280;
    }
    
    /* Upcoming Appointments */
    .upcoming-appointments,
    .today-schedule {
        background: white;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        margin-bottom: 20px;
    }
    
    .upcoming-appointments h3,
    .today-schedule h3 {
        font-size: 18px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #1a1a1a;
    }
    
    .no-appointments,
    .empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #9ca3af;
    }
    
    .no-appointments i,
    .empty-state i {
        font-size: 48px;
        margin-bottom: 12px;
        opacity: 0.5;
    }
    
    .no-appointments p,
    .empty-state p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* ========== PRESCRIPTIONS / ĐƠN THUỐC ========== */
    .prescriptions-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .prescriptions-filters {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.08) 100%);
        padding: 16px;
        border-radius: 12px;
        border: 1px solid rgba(102, 126, 234, 0.2);
    }
    
    .prescriptions-filters .filter-group {
        margin-bottom: 12px;
    }
    
    .prescriptions-filters .filter-group:last-child {
        margin-bottom: 0;
    }
    
    .prescriptions-filters label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
    }
    
    .prescriptions-filters select {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 14px;
    }
    
    .prescriptions-filters button {
        width: 100%;
        margin-top: 12px;
    }
    
    .current-prescriptions,
    .prescription-history {
        background: white;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .prescription-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .prescription-header h3 {
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .prescription-count {
        font-size: 13px;
        color: #667eea;
        font-weight: 600;
    }
    
    .prescription-card {
        background: #f9fafb;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        border-left: 4px solid #667eea;
    }
    
    .prescription-card.completed {
        border-left-color: #10b981;
    }
    
    .prescription-card.paused {
        border-left-color: #f59e0b;
    }
    
    .prescription-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .prescription-info h4 {
        font-size: 16px;
        margin-bottom: 8px;
        color: #1a1a1a;
    }
    
    .prescription-date,
    .prescription-doctor {
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 4px;
    }
    
    .prescription-status {
        flex-shrink: 0;
    }
    
    .status-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
    }
    
    .status-badge.active {
        background: #dbeafe;
        color: #1e40af;
    }
    
    .status-badge.completed {
        background: #d1fae5;
        color: #065f46;
    }
    
    .status-badge.paused {
        background: #fef3c7;
        color: #92400e;
    }
    
    .prescription-medications {
        background: white;
        border-radius: 8px;
        padding: 12px;
        margin-top: 12px;
    }
    
    .medication-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .medication-row:last-child {
        border-bottom: none;
    }
    
    .med-name {
        font-size: 15px;
        font-weight: 600;
        color: #1a1a1a;
    }
    
    .dosage-info {
        font-size: 14px;
        color: #6b7280;
    }
    
    .dosage-time {
        font-size: 13px;
        color: #9ca3af;
    }
    
    .med-quantity .quantity {
        font-size: 14px;
        color: #667eea;
        font-weight: 600;
    }
    
    .prescription-notes {
        background: #fef3c7;
        border-radius: 8px;
        padding: 12px;
        margin-top: 12px;
        border-left: 3px solid #f59e0b;
    }
    
    .prescription-notes h5 {
        font-size: 14px;
        color: #92400e;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .prescription-notes p {
        font-size: 13px;
        color: #78350f;
        line-height: 1.6;
        margin: 0;
    }
    
    /* Today Medications Schedule */
    .today-medications {
        background: white;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .today-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .today-header h3 {
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .today-date {
        font-size: 13px;
        color: #6b7280;
    }
    
    .time-slot {
        background: #f9fafb;
        border-radius: 10px;
        padding: 14px;
        margin-bottom: 12px;
        border-left: 3px solid #667eea;
    }
    
    .time-slot-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .time-label {
        font-size: 15px;
        font-weight: 600;
        color: #667eea;
    }
    
    .med-item {
        font-size: 14px;
        color: #374151;
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
    }
    
    /* Appointment Cards */
    .appointment-card,
    .schedule-item {
        background: #f9fafb;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        border-left: 4px solid #667eea;
    }
    
    .appointment-card:last-child,
    .schedule-item:last-child {
        margin-bottom: 0;
    }
    
    .appointment-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .appointment-time {
        font-size: 14px;
        font-weight: 600;
        color: #667eea;
    }
    
    .appointment-status {
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 12px;
        background: #dbeafe;
        color: #1e40af;
    }
    
    .appointment-patient,
    .patient-info {
        font-size: 15px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 4px;
    }
    
    .appointment-reason {
        font-size: 13px;
        color: #6b7280;
    }
    
    /* Cards */
    .card {
        padding: 20px !important;
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    .card-header h2 {
        font-size: 20px !important;
    }
    
    /* Appointment Wizard */
    .appointment-wizard {
        border-radius: 16px;
        margin: 16px 0;
    }
    
    .wizard-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 16px 12px;
        -webkit-overflow-scrolling: touch;
    }
    
    .step {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 12px 8px !important;
        font-size: 13px !important;
    }
    
    .step .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
        margin-bottom: 6px;
    }
    
    .wizard-content {
        padding: 20px 16px !important;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        width: 100%;
        padding: 12px 14px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 15px;
        transition: all 0.3s ease;
    }
    
    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    
    /* Buttons */
    .btn,
    button {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .btn-primary:active {
        transform: scale(0.98);
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .wizard-buttons {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .wizard-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    table {
        min-width: 600px;
        font-size: 14px;
    }
    
    table th,
    table td {
        padding: 12px 8px !important;
    }
    
    /* Modals */
    .modal-overlay {
        padding: 0 !important;
    }
    
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .modal-header {
        padding: 16px 20px !important;
    }
    
    .modal-header h2 {
        font-size: 20px !important;
    }
    
    .modal-body {
        padding: 20px 16px !important;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 16px 20px !important;
    }
    
    /* Time Slots */
    .time-slots {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .time-slot {
        padding: 12px 8px !important;
        font-size: 14px !important;
    }
    
    /* Doctor Cards */
    .doctors-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .doctor-card {
        padding: 20px !important;
        border-radius: 16px;
    }
    
    /* Hero Sections */
    .hero,
    .doctors-hero {
        padding: 80px 0 40px !important;
        margin-top: 60px !important;
    }
    
    .hero h1,
    .doctors-hero h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }
    
    .hero p,
    .doctors-hero p {
        font-size: 15px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .service-card {
        padding: 24px !important;
        border-radius: 16px;
    }
    
    /* Filter Controls */
    .filter-controls {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .specialty-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    
    /* Section Spacing */
    section {
        padding: 40px 0 !important;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 24px !important;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px !important;
    }
    
    .logo-text h1 {
        font-size: 16px !important;
    }
    
    .stat-card {
        padding: 16px !important;
    }
    
    .stat-card h3 {
        font-size: 24px !important;
    }
    
    .action-card {
        padding: 16px !important;
    }
    
    .time-slots {
        grid-template-columns: 1fr !important;
    }
    
    input,
    select,
    textarea,
    .btn,
    button {
        padding: 12px;
        font-size: 14px;
    }
    
    .wizard-steps {
        padding: 12px 8px;
    }
    
    .step {
        min-width: 80px;
        font-size: 12px !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero,
    .doctors-hero {
        padding: 60px 0 30px !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
