/* Modern Medical UI - Professional Blue Design */

/* CSS Custom Properties for Consistent Design System */
:root {
    /* Primary Blue Palette */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    /* Secondary Blues */
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-200: #e2e8f0;
    --secondary-300: #cbd5e1;
    --secondary-400: #94a3b8;
    --secondary-500: #64748b;
    --secondary-600: #475569;
    --secondary-700: #334155;
    --secondary-800: #1e293b;
    --secondary-900: #0f172a;
    
    /* Accent Blues */
    --accent-blue: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #1d4ed8;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: var(--primary-500);
    
    /* Neutral Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --space-6xl: 10rem;
    --space-7xl: 12rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* Modern Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
}

h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
}

h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: 600;
}

h5 { 
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
}

h6 { 
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.8;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--primary-600); }
.text-secondary { color: var(--secondary-600); }
.text-muted { color: var(--gray-500); }
.text-white { color: white; }

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    line-height: 1.4;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-sm);
}

.btn:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary Button - Main Blue */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border: 1px solid var(--primary-600);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* Secondary Button - Lighter Blue */
.btn-secondary {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    color: var(--primary-700);
    border: 1px solid var(--primary-200);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--primary-600);
    border: none;
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--primary-50);
    transform: translateY(-1px);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

/* Status Buttons */
.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: 1px solid var(--success);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
    border: 1px solid var(--warning);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: white;
    border: 1px solid var(--error);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Button with icon */
.btn i {
    font-size: 0.875em;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--primary-600);
}

/* Modern Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1.25rem var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-600);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-logo:hover {
    color: var(--primary-700);
    transform: scale(1.02);
}

.nav-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.025em;
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    transition: all var(--transition-base);
    border-radius: 1px;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
}

.nav-link.btn::after {
    display: none;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #667eea;
}

.nav-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Large screen navigation adjustments */
@media (min-width: 1200px) {
    .navbar {
        padding: 1.25rem var(--space-2xl);
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 1.25rem var(--space-lg);
    }
    
    .nav-menu {
        gap: var(--space-md);
    }
}

/* Compact Hero Section */
.hero {
    margin-top: 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 50%, var(--primary-100) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-2xl) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(3, 105, 161, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
    padding-right: var(--space-xl);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 50%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    color: var(--gray-700);
    line-height: 1.6;
    max-width: 90%;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    align-items: center;
}

.hero-buttons .btn {
    min-width: 180px;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0 0;
    border-top: 2px solid var(--primary-200);
    margin-top: var(--space-xl);
}

.stat {
    text-align: left;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-100);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-700);
    margin-bottom: var(--space-sm);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.hero-image {
    position: relative;
    animation: slideInRight 0.8s ease-out 0.2s both;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 50%, var(--primary-300) 100%);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.7;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(225deg, var(--primary-200) 0%, var(--primary-100) 100%);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.5;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-slow);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.hero-image:hover img {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.3);
}

/* Responsive Hero Design */
@media (max-width: 1024px) {
    .hero {
        min-height: 50vh;
        padding: var(--space-xl) 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
        padding: 0 var(--space-lg);
    }
    
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: var(--space-lg);
    }
    
    .hero-image img {
        max-width: 320px;
        height: 380px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        max-width: 400px;
        margin: var(--space-lg) auto 0;
    }
    
    .stat {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem var(--space-md);
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-buttons {
        gap: var(--space-sm);
    }
    
    .nav-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-lg) 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
        margin-bottom: var(--space-lg);
    }
    
    .hero-buttons .btn {
        min-width: 100%;
    }
    
    .hero-image img {
        max-width: 280px;
        height: 320px;
    }
    
    .hero-stats {
        border-top: none;
        padding-top: var(--space-md);
        margin-top: var(--space-md);
    }
}

/* Page Header - Compact Hero for Internal Pages */
.page-header {
    margin-top: 80px;
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    text-align: center;
    position: relative;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Medical Background with Blue Gradient */
.page-header.medical-background {
    background: 
        linear-gradient(135deg, 
            rgba(14, 165, 233, 0.75) 0%, 
            rgba(59, 130, 246, 0.65) 25%,
            rgba(37, 99, 235, 0.55) 50%,
            rgba(29, 78, 216, 0.65) 75%,
            rgba(14, 165, 233, 0.75) 100%
        ),
        url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 60vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header.medical-background::before {
    display: none;
}

.page-header.medical-background .page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 0 var(--space-lg);
}

.page-header.medical-background .page-title {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: clamp(3rem, 8vw, 5rem);
}

.page-header.medical-background .page-subtitle {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Page Header Responsive */
@media (max-width: 768px) {
    .page-header {
        min-height: 25vh;
        padding: var(--space-lg) 0;
    }
    
    .page-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
        margin-bottom: var(--space-sm);
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .page-header.medical-background {
        background-attachment: scroll;
        min-height: 50vh;
        padding: 0;
    }
    
    .page-header.medical-background .page-header-content {
        padding: 0 var(--space-md);
    }
    
    .page-header.medical-background .page-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .page-header.medical-background .page-subtitle {
        font-size: 1.125rem;
    }
}

/* =============================================================================
   ENHANCED ANIMATIONS & MICRO-INTERACTIONS
   ============================================================================= */

/* Advanced Keyframe Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-200deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.6), 0 0 30px rgba(14, 165, 233, 0.4);
    }
}

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

/* Enhanced Card Animations */
.card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.08);
}

.card:hover::before {
    left: 100%;
}

.card-elevated {
    animation: scaleIn 0.6s ease-out;
}

.card-elevated:hover {
    animation: pulse 2s infinite;
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
}

/* Loading Button Animation */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Navigation Animations */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-600);
    transform: translateY(-2px);
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Enhanced Section Animations */

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-200), transparent);
    opacity: 0;
    animation: slideInFromBottom 1s ease-out 0.5s forwards;
}

/* Floating Elements */
.float-element {
    animation: float 3s ease-in-out infinite;
}

.float-element:nth-child(2) {
    animation-delay: 1s;
}

.float-element:nth-child(3) {
    animation-delay: 2s;
}

/* Enhanced Form Animations */
.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-control {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(14, 165, 233, 0.15),
        0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-label {
    transition: all 0.3s ease;
    transform-origin: left top;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    transform: translateY(-25px) scale(0.8);
    color: var(--primary-600);
}

/* Success/Error States */
.form-control.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-control.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    border-radius: 2px;
    animation: progressBar 2s ease-out forwards;
}

/* Hover Effects for Interactive Elements */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.interactive-element:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Stagger Animation for Lists */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInFromBottom 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Stat Cards */
.stat {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat:hover {
    transform: translateY(-5px) scale(1.03);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
}

/* Medical Background Enhanced Animation */
.medical-background {
    position: relative;
}

.medical-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.medical-background .page-header-content {
    z-index: 3;
}

/* Ripple Animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Fade Out Animation */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Enhanced Hover States */
.service-item,
.doctor-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.service-item:hover,
.doctor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced FAQ Items */
.faq-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.faq-item:hover {
    border-left-color: var(--primary-500);
    background: var(--primary-25);
    transform: translateX(5px);
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Enhanced Focus States */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Professional Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Enhanced Card Grid Animations */
.card-grid {
    display: grid;
    gap: var(--space-lg);
}

.card-grid .card:nth-child(1) { animation-delay: 0.1s; }
.card-grid .card:nth-child(2) { animation-delay: 0.2s; }
.card-grid .card:nth-child(3) { animation-delay: 0.3s; }
.card-grid .card:nth-child(4) { animation-delay: 0.4s; }
.card-grid .card:nth-child(5) { animation-delay: 0.5s; }
.card-grid .card:nth-child(6) { animation-delay: 0.6s; }

/* Modern Hero Section - MiraBooking Style */
.hero-modern {
    margin-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 64, 175, 0.9) 25%, rgba(37, 99, 235, 0.9) 50%, rgba(59, 130, 246, 0.9) 75%, rgba(96, 165, 250, 0.9) 100%),
        url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center right;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-modern::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    pointer-events: none;
    z-index: 10;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title-modern {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title-modern .highlight {
    background: linear-gradient(135deg, #06d6a0 0%, #00c9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.hero-subtitle-modern {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-modern-primary {
    display: inline-block;
    background: linear-gradient(135deg, #06d6a0 0%, #00c9ff 100%);
    color: white;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(6, 214, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-modern-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-modern-primary:hover::before {
    left: 100%;
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 214, 160, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Responsive */
@media (max-width: 768px) {
    .hero-modern {
        min-height: 90vh;
        padding: 2rem 0;
        background-attachment: scroll;
        background-position: center;
    }
    
    .hero-content-center {
        padding: 0 1rem;
    }
    
    .hero-title-modern {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .btn-modern-primary {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .hero-modern::after {
        height: 120px;
        bottom: -40px;
    }
    
    .featured-services {
        margin-top: -40px;
        padding-top: 80px;
        margin-bottom: var(--space-2xl);
        padding-bottom: var(--space-3xl);
    }
    
    .doctor-highlights {
        padding-top: var(--space-4xl);
        padding-bottom: var(--space-4xl);
        margin-top: var(--space-2xl);
        margin-bottom: var(--space-2xl);
    }
    
    .cta-section {
        padding-top: var(--space-4xl);
        padding-bottom: var(--space-4xl);
        margin-top: var(--space-3xl);
    }
    
    .services-grid,
    .doctors-grid {
        gap: var(--space-lg);
        margin: var(--space-lg) 0;
    }
}

/* Modern Sections */
.section {
    padding: var(--space-3xl) 0;
    margin: var(--space-2xl) 0;
    position: relative;
}

/* Enhanced Section Spacing */

/* Add proper spacing between major sections */
.hero + .section,
.hero + .featured-services,
.featured-services + .doctor-highlights,
.doctor-highlights + .cta-section {
    margin-top: var(--space-4xl);
}

.section-alt {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 1rem;
}

.section-title {
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Featured Services */
.featured-services {
    padding: var(--space-4xl) 0;
    padding-top: 120px;
    padding-bottom: var(--space-5xl);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-25) 50%, var(--secondary-25) 100%);
    position: relative;
    overflow: hidden;
    margin-top: -60px;
    margin-bottom: var(--space-4xl);
}

.featured-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    margin: var(--space-2xl) 0;
    position: relative;
    z-index: 20;
}

.featured-services .section-header,
.doctor-highlights .section-header {
    position: relative;
    z-index: 20;
    text-align: center;
    margin-bottom: var(--space-4xl);
    padding: var(--space-xl) 0;
}

.doctor-highlights .section-header h2 {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    animation: titleGlow 3s ease-in-out infinite;
}

.doctor-highlights .section-header p {
    color: var(--gray-600);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 50px rgba(14, 165, 233, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 35px 70px rgba(14, 165, 233, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 50%, var(--primary-600) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    position: relative;
    box-shadow: 
        0 15px 35px rgba(14, 165, 233, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 20px 40px rgba(14, 165, 233, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    margin-bottom: var(--space-md);
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover h3 {
    color: var(--primary-700);
    transform: translateY(-2px);
}

.service-card p {
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    color: var(--gray-600);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover p {
    color: var(--gray-700);
}

.service-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.service-link:hover::before {
    left: 0;
}

.service-link:hover {
    gap: var(--space-sm);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.25);
    border-color: var(--primary-500);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* Enhanced Service Cards Responsive */
@media (max-width: 768px) {
    .featured-services {
        padding: var(--space-2xl) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .service-card {
        padding: var(--space-xl);
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: var(--space-md);
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
}

/* Service Cards will use scroll animations from main.js */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Doctor Highlights */
.doctor-highlights {
    padding: var(--space-5xl) 0;
    padding-top: var(--space-6xl);
    padding-bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(30, 58, 138, 0.02) 0%, 
            rgba(37, 99, 235, 0.03) 25%,
            rgba(59, 130, 246, 0.02) 50%,
            rgba(96, 165, 250, 0.01) 75%,
            rgba(239, 246, 255, 0.5) 100%
        ),
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.06) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
    animation: sectionBackgroundShift 20s ease-in-out infinite;
    margin-top: var(--space-4xl);
    margin-bottom: 0;
}

.doctor-highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 60%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.04) 0%, transparent 50%);
    pointer-events: none;
    animation: floatingOrbs 30s ease-in-out infinite;
}

.doctor-highlights::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg, 
            rgba(59, 130, 246, 0.03) 60deg, 
            transparent 120deg, 
            rgba(14, 165, 233, 0.02) 180deg, 
            transparent 240deg, 
            rgba(37, 99, 235, 0.03) 300deg, 
            transparent 360deg
        );
    animation: rotateBackground 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    margin: var(--space-2xl) 0;
    margin-bottom: var(--space-4xl);
    position: relative;
    z-index: 2;
}

.doctor-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.1),
        0 15px 35px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: cardFloatIn 0.8s ease-out;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(14, 165, 233, 0.01) 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(59, 130, 246, 0.15),
        0 25px 50px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.2);
}

.doctor-card:hover::before {
    opacity: 1.5;
}

.doctor-card:nth-child(1) { animation-delay: 0.1s; }
.doctor-card:nth-child(2) { animation-delay: 0.2s; }
.doctor-card:nth-child(3) { animation-delay: 0.3s; }

.doctor-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.doctor-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-card:hover .doctor-image::before {
    opacity: 0.7;
}

.doctor-info {
    padding: var(--space-xl);
    position: relative;
    z-index: 3;
}

.doctor-info h3 {
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.doctor-specialty {
    color: var(--primary-500);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.doctor-specialty::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    transition: width 0.3s ease;
}

.doctor-card:hover .doctor-specialty::after {
    width: 100%;
}

.doctor-description {
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    color: var(--gray-600);
}

.doctor-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    margin-top: var(--space-lg);
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #fbbf24;
    font-size: 1rem;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

.doctor-card:hover .stars i {
    animation: starTwinkle 0.6s ease-in-out;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

.doctor-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 4;
    animation: badgePulse 2s ease-in-out infinite;
}

/* Enhanced CTA Section */
.cta-section {
    padding: var(--space-4xl) 0;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    background: 
        linear-gradient(135deg, 
            rgba(30, 58, 138, 0.95) 0%, 
            rgba(37, 99, 235, 0.95) 25%,
            rgba(59, 130, 246, 0.95) 50%,
            rgba(96, 165, 250, 0.95) 75%,
            rgba(125, 211, 252, 0.95) 100%
        ),
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.2) 0%, transparent 50%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: ctaGradientMove 15s ease-in-out infinite;
    margin-top: 0;
    margin-bottom: 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: floatingOrbs 25s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: var(--space-2xl);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-section .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-600);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-section .btn-outline:hover::before {
    left: 100%;
}

/* Modern Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--secondary-900) 100%);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--space-lg);
    color: white;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-400);
}

.footer-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    margin-bottom: var(--space-lg);
    color: var(--gray-300);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
}

.footer-section ul li a:hover {
    color: var(--primary-400);
    transform: translateX(4px);
}

.footer-section ul li a i {
    width: 1rem;
    color: var(--primary-500);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
    color: var(--gray-300);
}

.contact-info i {
    color: var(--primary-400);
    width: 1.25rem;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-600);
    border-color: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Modern Utility Classes */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Utilities for Accessibility */
.focus-visible:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Modern Spacing Utilities */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Width and Height Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Display Utilities */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Border Radius Utilities */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: 9999px; }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-none { box-shadow: none; }

/* Modern Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-blue {
    background: rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

.footer-bottom a {
    color: #667eea;
    text-decoration: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Modern Form System */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-family: var(--font-primary);
    background: white;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background: var(--primary-50);
}

.form-control:hover {
    border-color: var(--gray-300);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-select {
    appearance: none;
    background: white url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDFMNiA2TDExIDEiIHN0cm9rZT0iIzM3NDE1MSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+') no-repeat right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

.form-select:focus {
    background-color: var(--primary-50);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: 0;
    border-right: none;
}

.input-group .form-control:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group .form-control:last-child,
.input-group .btn:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-left: none;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Checkbox and Radio */
.checkbox-container,
.radio-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.checkbox-container input[type="checkbox"],
.radio-container input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary-600);
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #333;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* Modern Card System */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--space-xl);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1.125rem;
}

.card-header p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.card-body {
    padding: var(--space-xl);
}

.card-footer {
    padding: var(--space-lg) var(--space-xl);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card Variants */
.card-elevated {
    box-shadow: var(--shadow-xl);
}

.card-bordered {
    border: 2px solid var(--primary-200);
}

.card-gradient {
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
}

/* Modern Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-secondary {
    background: var(--secondary-100);
    color: var(--secondary-700);
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: var(--primary-100);
    color: var(--primary-700);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-title {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Doctor Card Detailed Styles */
.doctor-card-detailed {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.doctor-card-detailed .doctor-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.doctor-card-detailed .doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.doctor-card-detailed .doctor-info {
    padding: 2rem;
}

.doctor-card-detailed .doctor-specialty {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.doctor-card-detailed .doctor-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #666;
    font-size: 0.9rem;
}

.doctor-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.detail-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.3rem;
}

.detail-item p {
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.availability {
    margin-bottom: 1.5rem;
}

.availability h5 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.days {
    display: flex;
    gap: 0.5rem;
}

.day {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f1f3f4;
    color: #999;
}

.day.available {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.doctor-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.doctor-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
}

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #667eea !important;
    color: white !important;
}

.filter-btn:hover {
    background: #667eea;
    color: white;
}

/* Hidden class for filtering */
.doctor-card-detailed.hidden {
    display: none;
}

/* Booking Progress Styles */
.booking-progress {
    margin-bottom: 3rem;
}

.progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #667eea;
    color: white;
}

.progress-step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: 500;
}

.progress-line {
    width: 100px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 1rem;
}

.progress-step.completed + .progress-line {
    background: #4CAF50;
}

/* Booking Steps */
.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

/* Service Selection */
.service-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-option {
    cursor: pointer;
    display: block;
}

.service-option input[type="radio"] {
    display: none;
}

.service-option-content {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.service-option:hover .service-option-content {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.service-option input[type="radio"]:checked + .service-option-content {
    border-color: #667eea;
    background: #f8faff;
}

.service-option-content i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.service-option-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.service-option-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-option-content .price {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Doctor Selection */
.doctor-selection {
    display: grid;
    gap: 1rem;
}

.doctor-option {
    cursor: pointer;
    display: block;
}

.doctor-option input[type="radio"] {
    display: none;
}

.doctor-option-content {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.doctor-option:hover .doctor-option-content {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.doctor-option input[type="radio"]:checked + .doctor-option-content {
    border-color: #667eea;
    background: #f8faff;
}

.doctor-option-content img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
}

.doctor-info h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.doctor-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating span:last-child {
    color: #666;
    font-size: 0.8rem;
}

.availability-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.availability-status.available {
    background: #d1fae5;
    color: #065f46;
}

.availability-status.unavailable {
    background: #fee2e2;
    color: #991b1b;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.time-slot {
    cursor: pointer;
    display: block;
}

.time-slot input[type="radio"] {
    display: none;
}

.time-slot span {
    display: block;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slot:hover span {
    border-color: #667eea;
    background: #f8faff;
}

.time-slot input[type="radio"]:checked + span {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* Checkbox styling */
.checkbox-container input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

/* Form Error States */
.form-control.error {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.field-error {
    color: #f44336;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* FAQ Styles */
.faq-filter {
    transition: all 0.3s ease;
}

.faq-filter.active {
    background: #667eea !important;
    color: white !important;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-item.active .faq-question {
    background: #f8faff;
    border-bottom: 1px solid #e2e8f0;
}

.faq-question h3 {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-question i {
    color: #667eea;
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 1000px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-answer ul,
.faq-answer ol {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: #333;
}

.faq-item.hidden {
    display: none;
}

/* Admin Interface Styles */
.admin-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.admin-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: none;
}

.admin-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.admin-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.admin-search {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-search i {
    position: absolute;
    left: 12px;
    color: #666;
}

.search-input {
    padding: 8px 12px 8px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 300px;
    font-size: 14px;
}

.admin-notifications {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    position: relative;
    padding: 8px;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-weight: 500;
    color: #333;
}

.admin-role {
    font-size: 0.8rem;
    color: #666;
}

.admin-dropdown-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    width: 260px;
    background: #1a202c;
    padding: 2rem 0;
    overflow-y: auto;
    z-index: 900;
}

.admin-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav-item {
    margin-bottom: 0.5rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.admin-nav-link:hover {
    background: #2d3748;
    color: white;
}

.admin-nav-item.active .admin-nav-link {
    background: #667eea;
    color: white;
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
}

.nav-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: auto;
}

.admin-nav-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    padding: 0 24px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: #f44336;
}

/* Admin Main Content */
.admin-main {
    margin-left: 260px;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: #f8fafc;
}

.admin-content {
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 1rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.metric-icon.patients {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.metric-icon.revenue {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.metric-icon.satisfaction {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.metric-content h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.metric-change {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-change.positive {
    color: #4CAF50;
}

.metric-change.negative {
    color: #f44336;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dashboard-card .card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card .card-header h3 {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.schedule-time {
    font-weight: 600;
    color: #667eea;
    min-width: 80px;
}

.schedule-content {
    flex: 1;
}

.patient-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.appointment-type {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.doctor-name {
    color: #667eea;
    font-size: 0.8rem;
}

/* Patient List */
.patient-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.patient-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.patient-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.patient-info {
    flex: 1;
}

.patient-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.patient-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.last-visit {
    color: #667eea;
    font-size: 0.8rem;
}

.patient-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #e2e8f0;
    color: #333;
}

/* Stats List */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

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

.stat-value {
    font-weight: 600;
    color: #333;
}

.stat-trend {
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-trend.positive {
    color: #4CAF50;
}

.stat-trend.negative {
    color: #f44336;
}

/* Notification List */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: #999;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-search {
        display: none;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .booking-progress .progress-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-line {
        width: 2px;
        height: 50px;
        margin: 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

/* Doctor Section Animations */
@keyframes sectionBackgroundShift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

@keyframes floatingOrbs {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.8;
    }
    33% { 
        transform: translate(20px, -10px) scale(1.1); 
        opacity: 1;
    }
    66% { 
        transform: translate(-15px, 10px) scale(0.9); 
        opacity: 0.9;
    }
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes cardFloatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes starTwinkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        transform: scale(1.2) rotate(12deg); 
    }
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

@keyframes titleGlow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    }
    50% { 
        filter: brightness(1.1) drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
    }
}

@keyframes ctaGradientMove {
    0%, 100% { 
        background-position: 0% 50%, 0% 50%, 100% 50%; 
    }
    50% { 
        background-position: 100% 50%, 50% 0%, 0% 100%; 
    }
}

/* About Page Styles */
.story-content {
    background: var(--secondary-50);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    border-left: 4px solid var(--primary-600);
}

.story-content .lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
}

.story-content .highlight-text {
    font-weight: 600;
    color: var(--primary-700);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--secondary-50);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--secondary-200);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: white;
}

.feature-icon.success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.feature-icon.info {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.feature-icon.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.feature-icon.primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-dark) 100%);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(var(--primary-600), 0.3);
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* Foundation Grid Layout */
.foundation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.foundation-card {
    display: flex;
    flex-direction: column;
}

.foundation-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.foundation-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.foundation-card h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.foundation-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Foundation Grid */
@media (max-width: 992px) {
    .foundation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .foundation-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Values Grid Layout */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    display: flex;
    flex-direction: column;
}

.value-card .feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.value-card h4 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Values Grid */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Facility Grid Layout */
.facility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.facility-image {
    display: flex;
    justify-content: center;
}

.facility-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.facility-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.facility-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.facility-content .lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.facility-content h4 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responsive Facility Grid */
@media (max-width: 768px) {
    .facility-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .facility-image {
        order: -1;
    }
}

/* Achievements Grid Layout */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-card {
    display: flex;
    flex-direction: column;
}

.achievement-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.achievement-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.achievement-card h4 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.achievement-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.award-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.award-icon.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

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

.award-icon.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

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

/* Responsive Achievements Grid */
@media (max-width: 992px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .award-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stats-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-card .stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stats-card .stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced text visibility colors - White text */
.stat-number.text-warning,
.stat-number.text-success,
.stat-number.text-info,
.stat-number.text-primary,
.stat-number {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Stats section title styling */
.stats-section .section-title {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* Responsive Stats Grid */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stats-card .stat-card {
        padding: 2rem 1rem;
    }
}

/* ========================================
   ADMIN INTERFACE STYLES
========================================= */

/* Admin Layout */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.admin-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-600);
}

.admin-logo i {
    font-size: 1.5rem;
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-search {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-search i {
    position: absolute;
    left: 1rem;
    color: var(--gray-400);
    z-index: 10;
}

.search-input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    width: 300px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--red-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-user:hover {
    background: var(--gray-50);
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
}

.admin-role {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.admin-dropdown-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
}

.admin-dropdown-btn:hover {
    color: var(--gray-600);
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: white;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    z-index: 100;
}

.admin-nav {
    padding: 1.5rem 0;
}

.admin-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav-item {
    margin: 0.25rem 1rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.admin-nav-link:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.admin-nav-item.active .admin-nav-link {
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 600;
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-badge {
    background: var(--primary-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: auto;
}

.admin-nav-footer {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--red-600);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--red-200);
}

.logout-btn:hover {
    background: var(--red-50);
    border-color: var(--red-300);
}

/* Main Content Area */
.admin-main {
    margin-left: 280px;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: var(--gray-50);
}

.admin-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.page-header p {
    color: var(--gray-600);
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

.page-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-success {
    background: var(--green-600);
    color: white;
}

.btn-success:hover {
    background: var(--green-700);
}

.btn-danger {
    background: var(--red-600);
    color: white;
}

.btn-danger:hover {
    background: var(--red-700);
}

.btn-warning {
    background: var(--yellow-500);
    color: white;
}

.btn-warning:hover {
    background: var(--yellow-600);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

.metric-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--primary-600);
}

.metric-icon.patients {
    background: var(--green-600);
}

.metric-icon.revenue {
    background: var(--yellow-600);
}

.metric-icon.satisfaction {
    background: var(--purple-600);
}

.metric-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--green-600);
}

.metric-change.negative {
    color: var(--red-600);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.card-body {
    padding: 1.5rem 2rem;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table thead {
    background: var(--gray-50);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    color: var(--gray-900);
}

.data-table tr:hover {
    background: var(--gray-50);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 0.8rem;
}

.action-btn.edit {
    background: var(--blue-600);
}

.action-btn.edit:hover {
    background: var(--blue-700);
}

.action-btn.delete {
    background: var(--red-600);
}

.action-btn.delete:hover {
    background: var(--red-700);
}

.action-btn.view {
    background: var(--green-600);
}

.action-btn.view:hover {
    background: var(--green-700);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.confirmed {
    background: var(--green-100);
    color: var(--green-800);
}

.status-badge.pending {
    background: var(--yellow-100);
    color: var(--yellow-800);
}

.status-badge.cancelled {
    background: var(--red-100);
    color: var(--red-800);
}

.status-badge.completed {
    background: var(--blue-100);
    color: var(--blue-800);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 1rem;
    }
    
    .page-header {
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-actions {
        justify-content: stretch;
        flex-direction: column;
    }
    
    .search-input {
        width: 200px;
    }
    
    .admin-nav-right {
        gap: 1rem;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Form Styles */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input.is-valid,
.form-group select.is-valid,
.form-group textarea.is-valid {
    border-color: var(--green-500);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: var(--red-500);
}

.invalid-feedback {
    color: var(--red-600);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-loading,
.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.search-result:hover {
    background: var(--gray-50);
}

.search-result:last-child {
    border-bottom: none;
}

.search-result i {
    color: var(--primary-600);
    width: 20px;
    text-align: center;
}

.result-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
}

.result-subtitle {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.notification-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-600);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    background: var(--primary-50);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: var(--blue-50);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.notification-icon.appointment {
    background: var(--blue-600);
}

.notification-icon.patient {
    background: var(--green-600);
}

.notification-icon.system {
    background: var(--gray-600);
}

.notification-icon.alert {
    background: var(--red-600);
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.notification-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--blue-600);
    border-radius: 50%;
}

.notification-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.view-all-notifications {
    color: var(--primary-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.view-all-notifications:hover {
    color: var(--primary-700);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Success Messages */
.success-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--green-600);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
    animation-fill-mode: forwards;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .admin-logo {
        margin-left: 0;
    }
    
    .notification-dropdown {
        width: 320px;
    }
    
    .search-input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        margin: 1rem;
        max-width: none;
    }
    
    .notification-dropdown {
        width: 280px;
        right: -1rem;
    }
    
    .admin-user-info {
        display: none;
    }
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    margin-left: 0.5rem;
    border: solid;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.dropdown.open .dropdown-toggle::after {
    transform: rotate(225deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

/* Table Filter Styles */
.table-filters {
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.table-filter-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    min-width: 250px;
}

.table-filter-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sort Icons */
.sort-icon {
    margin-left: 0.5rem;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

th.sort-asc .sort-icon,
th.sort-desc .sort-icon {
    color: var(--primary-600);
}

/* Enhanced Table Styles */
.data-table th {
    position: relative;
    user-select: none;
}

.data-table th[data-sortable]:hover {
    background: var(--gray-100);
}

.data-table tbody tr[data-id] {
    cursor: pointer;
}

.data-table tbody tr[data-id]:hover {
    background: var(--primary-50);
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background: var(--gray-900);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.9;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--gray-900);
}

/* Enhanced Form Elements */
.form-select,
.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s ease;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Card Enhancements */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-body {
    padding: 2rem;
}

/* Badge Enhancements */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: var(--green-100);
    color: var(--green-800);
}

.badge-warning {
    background: var(--yellow-100);
    color: var(--yellow-800);
}

.badge-danger {
    background: var(--red-100);
    color: var(--red-800);
}

.badge-info {
    background: var(--blue-100);
    color: var(--blue-800);
}

/* Button Icon Styles */
.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .admin-sidebar,
    .admin-header,
    .page-actions,
    .table-actions {
        display: none !important;
    }
    
    .admin-main {
        margin: 0 !important;
    }
    
    .admin-content {
        padding: 0 !important;
    }
}

/* ========================================
   BOOKING SYSTEM STYLES
========================================= */

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-600);
    color: white;
}

.step.completed .step-number {
    background: var(--green-600);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-600);
    font-weight: 600;
}

/* Booking Form */
.booking-steps {
    max-width: 800px;
    margin: 0 auto;
}

.booking-step {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.time-slot {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-weight: 500;
    color: var(--gray-700);
}

.time-slot:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.time-slot.active {
    border-color: var(--primary-600);
    background: var(--primary-600);
    color: white;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
    font-style: italic;
}

.no-slots {
    text-align: center;
    padding: 2rem;
    color: var(--red-600);
    background: var(--red-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--red-200);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Booking Summary */
.booking-summary {
    margin: 2rem 0;
}

.summary-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.summary-card h4 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.summary-row .label {
    font-weight: 600;
    color: var(--gray-600);
}

.summary-row .value {
    color: var(--gray-900);
    font-weight: 500;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-message i {
    font-size: 4rem;
    color: var(--green-600);
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-message p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Confirmation Details */
.confirmation-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--green-200);
    box-shadow: var(--shadow-sm);
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.next-steps {
    background: var(--blue-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--blue-200);
}

.next-steps h4 {
    color: var(--blue-900);
    margin-bottom: 1rem;
    font-weight: 600;
}

.next-steps ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--blue-800);
}

.next-steps li {
    margin-bottom: 0.5rem;
}

/* Error Messages */
.booking-error {
    background: var(--red-50);
    color: var(--red-700);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1rem 0;
    border: 1px solid var(--red-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-error::before {
    content: '⚠️';
    font-size: 1.2rem;
}

/* Avatar Placeholder */
.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Progress Indicator (original) */
.booking-progress {
    margin-bottom: 3rem;
}

.progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-600);
    color: white;
}

.progress-step .step-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary-600);
    font-weight: 600;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--gray-200);
    margin: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .step-indicator {
        gap: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .booking-step {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: 1fr;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.facility-content {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--secondary-100);
    display: flex;
    align-items: center;
}

.feature-item:last-child {
    border-bottom: none;
}

.award-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.award-icon.warning {
    background: linear-gradient(135deg, #fbbf24 0%, var(--warning) 100%);
}

.award-icon.success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.award-icon.info {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.award-icon.primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-dark) 100%);
}

.stats-section {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.4;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* About Page Organization */
.page-header + .section {
    margin-top: var(--space-3xl);
}

.section + .section {
    margin-top: var(--space-3xl);
}

.section.section-alt {
    margin: var(--space-3xl) 0;
    padding: var(--space-4xl) 0;
}

/* Better spacing for about page content */
.story-content,
.facility-content {
    margin-bottom: var(--space-lg);
}

.feature-card,
.card {
    margin-bottom: var(--space-lg);
}

/* Responsive improvements for about page */
@media (max-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
        margin: var(--space-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .story-content,
    .facility-content {
        margin-bottom: var(--space-md);
    }
}