@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Sophisticated Color Palette */
    --primary: #2A9D8F;
    --primary-dark: #21867a;
    --secondary: #264653;
    --accent: #E9C46A;
    --bg-light: #F8F9FA;
    --text-main: #2C3E50;
    --text-muted: #6C757D;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(38, 70, 83, 0.9), rgba(42, 157, 143, 0.8));

    /* Spacing & Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

/* Spacer for fixed navbar overlap prevention */
.page-spacer {
    padding-top: 140px !important;
    min-height: 80vh;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Navbar Overhaul */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 0.6rem 1.8rem;
    background-color: var(--primary);
    color: white !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
}

.nav-btn:hover::after {
    width: 0 !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    margin-bottom: -5rem;
    /* For card overlap */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary);
}

/* Glassmorphism Cards */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-section {
    position: relative;
    z-index: 10;
    margin-bottom: 6rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease;
}

.glass:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.glass-light {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s ease;
}

.glass-light:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-wrapper {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Specialists */
.specialists-section {
    padding: 4rem 2rem 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.doctor-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.doctor-card h4 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.specialization {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.doctor-meta {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
}

/* Auth Pages */
.form-control {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

/* Authentication Pages Redesign */
/* --- SPLIT AUTH LAYOUT --- */
.auth-page {
    /* Reset old styles */
    min-height: 100vh;
    padding: 0;
    padding-top: 80px; /* Add padding for fixed navbar */
    background: white;
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
}

.auth-sidebar {
    width: 40%;
    background: linear-gradient(135deg, #264653, #2A9D8F);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: white;
    z-index: 1;
    overflow: hidden;
}

/* Aurora Animation Effect */
.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 196, 106, 0.2) 0%, transparent 60%),
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: aurora 15s linear infinite;
    z-index: -1;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.auth-form-container {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
    position: relative;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.auth-card {
    background: white;
    /* No glass needed on white/clean side */
    backdrop-filter: none;
    box-shadow: none;
    width: 100%;
    max-width: 450px;
    padding: 0;
    text-align: left;
    /* Structured alignment */
}

.auth-header {
    text-align: left;
    margin-bottom: 3rem;
}

.auth-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 1.1rem;
}

.auth-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 2rem;
}

.auth-author {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- HOMEPAGE EXPANSION --- */

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: white;
    transition: all 0.3s;
    border: 1px solid #eee;
    cursor: pointer;
}

.service-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Cities & Hospitals */
.locales-section {
    padding: 6rem 2rem;
    background: #f0f4f8;
    position: relative;
}

.city-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    color: white;
}

.city-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.city-card:hover .city-bg {
    transform: scale(1.1);
}

.city-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.6;
    margin-top: 3rem;
}

.partner-logo {
    height: 40px;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
    opacity: 1;
}

/* Remove old video bg class */
.auth-video-bg {
    display: none;
}


.auth-header h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    background: #f0f2f5;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.1);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.3);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(42, 157, 143, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* --- ULTRA PREMIUM UI ADDITIONS --- */

/* SVG Wave Dividers */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.wave-divider .shape-fill {
    fill: var(--bg-light);
}

/* Typing Effect Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tilt Card Base */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    /* Fast transition for smooth mouse follow */
    will-change: transform;
}

/* Enhanced Glass for Tilt */
.glass {
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
}

/* Floating Blobs Background for White Sections */
.blob-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: floatBlob 10s infinite alternate;
}

/* --- SEARCH & FILTER SIDEBAR --- */
.sidebar-filters {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: var(--shadow-soft);
}

.filter-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--secondary);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.filter-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

.btn-clear {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
    margin-top: 1rem;
}


/* --- ELEGANT DARK THEME (Based on User Request) --- */
:root {
    --dark-bg: #111A16;
    /* Deep Jungle/Neutral Black */
    --dark-card: #1C2621;
    /* Dark Green-Gray */
    --dark-input: #2D3B35;
    --dark-text: #F0F4F2;
    --accent-red: #E53E3E;
    --accent-green: #2A9D8F;
    /* Primary Green/Teal */
}

/* Dark Card Component */
.card-dark {
    background: var(--dark-bg);
    color: var(--dark-text);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(42, 157, 143, 0.1);
    /* Subtle green border */
}

.card-dark h2,
.card-dark h3,
.card-dark h4 {
    color: white;
    font-family: 'Outfit', sans-serif;
}

/* Custom Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-nav-btn {
    background: #1C2621;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: #2D3B35;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.calendar-day-header {
    font-size: 0.8rem;
    color: #A0AEC0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calendar-day {
    padding: 0.8rem;
    border-radius: 12px;
    background: #1C2621;
    color: #CBD5E0;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled) {
    background: #2D3B35;
    border-color: #4FD1C5;
    /* Lighter Green hover */
}

.calendar-day.selected {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.4);
    /* Green shadow */
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
}

/* Time Slot Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.time-slot-btn {
    background: #1C2621;
    color: #CBD5E0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot-btn:hover:not(:disabled) {
    background: #2D3B35;
    color: white;
}

.time-slot-btn.selected {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

.time-slot-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dark Form Styles */
.form-group-dark {
    margin-bottom: 1.5rem;
}

.form-group-dark label {
    display: block;
    color: #A0AEC0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control-dark {
    width: 100%;
    padding: 1rem;
    background: #1C2621;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control-dark:focus {
    outline: none;
    border-color: var(--accent-green);
    background: #2D3B35;
}

.btn-accent {
    width: 100%;
    padding: 1rem;
    background: #C53030;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(197, 48, 48, 0.3);
}

.btn-accent:hover:not(:disabled) {
    background: #E53E3E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 48, 48, 0.4);
}

.btn-accent:disabled {
    background: #718096;
    cursor: not-allowed;
    box-shadow: none;
}

/* Enhanced Dashboard Cards */
.appt-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

.appt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.appt-card.status-scheduled {
    border-left-color: var(--primary);
}

.appt-card.status-completed {
    border-left-color: var(--secondary);
    opacity: 0.8;
}

.appt-card.status-cancelled {
    border-left-color: var(--accent-red);
    opacity: 0.6;
}

.appt-date-box {
    background: #EDF2F7;
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    min-width: 100px;
}

.appt-date-day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.appt-date-month {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.appt-info h4 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.appt-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 2rem;
    border-radius: 20px;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.8;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================
   MOBILE OPTIMIZATION & RESPONSIVE DESIGN
   ============================================ */

/* Burger Menu Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Tablet & Mobile Styles */
@media (max-width: 968px) {
    /* Show burger menu */
    .burger-menu {
        display: flex;
    }
    
    /* Hide nav links by default */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        align-items: flex-start;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 0.8rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links .nav-btn {
        margin-top: 1rem;
        text-align: center;
        border-bottom: none;
    }
    
    .user-greeting {
        padding: 0.8rem 0;
        font-size: 0.95rem;
        color: var(--text-muted);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Hero Section Mobile */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }
    
    /* Container Padding */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Card Grid */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Auth Pages Mobile */
    .auth-page {
        flex-direction: column;
        padding-top: 70px;
    }
    
    .auth-sidebar {
        width: 100%;
        min-height: 30vh;
        padding: 3rem 2rem;
    }
    
    .auth-form-container {
        width: 100%;
        padding: 2rem 1.5rem;
        max-height: none;
    }
    
    .auth-quote {
        font-size: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.8rem;
    }
    
    /* Dashboard Cards */
    .appt-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .appt-date-box {
        width: 100%;
    }
    
    /* Dashboard Stats */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    /* Time Grid */
    .time-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    /* Filter Sidebar */
    .sidebar-filters {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    /* Navbar */
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .nav-brand {
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero-section {
        height: 70vh;
        margin-bottom: -3rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.85rem;
    }
    
    /* Page Spacer */
    .page-spacer {
        padding-top: 100px !important;
    }
    
    /* Glass Cards */
    .glass, .glass-light {
        padding: 1.5rem;
    }
    
    /* Section Padding */
    .specialists-section,
    .locales-section {
        padding: 3rem 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Doctor Cards */
    .doctor-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .doctor-card h4 {
        font-size: 1.2rem;
    }
    
    .doctor-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Auth Pages */
    .auth-sidebar {
        min-height: 25vh;
        padding: 2rem 1.5rem;
    }
    
    .auth-quote {
        font-size: 1.3rem;
    }
    
    .auth-form-container {
        padding: 1.5rem 1rem;
    }
    
    .auth-header h2 {
        font-size: 1.6rem;
    }
    
    .form-control {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Dark Cards */
    .card-dark {
        padding: 1.5rem;
    }
    
    /* Calendar */
    .calendar-grid {
        gap: 0.3rem;
    }
    
    .calendar-day {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .calendar-day-header {
        font-size: 0.7rem;
    }
    
    /* Time Slots */
    .time-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .time-slot-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    /* Appointment Cards */
    .appt-card {
        padding: 1.5rem;
    }
    
    .appt-date-day {
        font-size: 1.5rem;
    }
    
    .appt-info h4 {
        font-size: 1.1rem;
    }
    
    /* Stat Cards */
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 1rem !important;
        margin-top: 2rem !important;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .card-grid {
        gap: 1rem;
    }
    
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
    }
    
    .nav-links {
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-links a {
        padding: 1rem 0;
    }
    
    .btn {
        padding: 1rem 2rem;
    }
    
    /* Remove hover effects on touch devices */
    .glass:hover,
    .glass-light:hover,
    .doctor-card:hover {
        transform: none;
    }
    
    /* Tap highlight color */
    * {
        -webkit-tap-highlight-color: rgba(42, 157, 143, 0.2);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .burger-menu,
    footer,
    .btn {
        display: none;
    }
    
    .page-spacer {
        padding-top: 0 !important;
    }
    
    body {
        background: white;
    }
}
