/* ========================================
   CavClinics - Modern UI Styles
   Clean, User-Friendly Design System
   ======================================== */

/* Enhanced CSS Variables */
:root {
    /* Primary Colors - Modern Blue */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-lighter: #dbeafe;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    
    /* Accent Colors */
    --accent-teal: #0d9488;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-red: #ef4444;
    
    /* Neutral Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Border & Shadow */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ========================================
   Base Improvements
   ======================================== */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Modern Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========================================
   Modern Navbar
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: none;
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    padding: 12px var(--space-xl);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    gap: 8px;
}

.logo i {
    font-size: 26px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 4px;
    position: relative;
}

.nav-links a::after {
    bottom: -2px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* ========================================
   Modern Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ========================================
   Modern Hero Section
   ======================================== */
.hero {
    background: var(--primary-gradient);
    min-height: 520px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.85) 100%);
}

.hero-content {
    max-width: 650px;
    padding: 60px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Modern Search Box */
.search-box {
    display: flex;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 15px;
    background: transparent;
}

.search-box input:focus {
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 18px 28px;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ========================================
   Modern Cards
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-header h3 i {
    color: var(--primary-color);
}

.card-body {
    padding: var(--space-lg);
}

.card-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

/* ========================================
   Modern Clinic Cards
   ======================================== */
.clinic-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid var(--border-light);
}

.clinic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.clinic-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    overflow: hidden;
}

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.clinic-card:hover .clinic-image img {
    transform: scale(1.08);
}

.clinic-image .clinic-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

.clinic-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clinic-badge.closed {
    background: rgba(239, 68, 68, 0.95);
}

.save-clinic-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    color: var(--text-muted);
    font-size: 16px;
}

.save-clinic-btn:hover {
    transform: scale(1.1);
}

.save-clinic-btn.saved {
    color: var(--accent-red);
}

.clinic-info {
    padding: var(--space-lg);
}

.clinic-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

.clinic-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.clinic-location i {
    color: var(--primary-color);
    font-size: 14px;
}

.clinic-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: var(--accent-orange);
    font-size: 13px;
}

.rating-stars i.empty {
    color: var(--border-medium);
}

.rating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

.clinic-services-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.service-tag {
    padding: 4px 10px;
    background: var(--bg-gray);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
}

.clinic-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.clinic-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* ========================================
   Clinic Grid
   ======================================== */
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* ========================================
   Modern Section Styles
   ======================================== */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header .view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
}

.section-header .view-all:hover {
    gap: 12px;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: white;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 32px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Page Header (User Dashboard Pages)
   ======================================== */
.page-header {
    background: var(--primary-gradient);
    padding: 100px 0 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

.page-header .breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    margin-top: 12px;
    opacity: 0.8;
}

.page-header .breadcrumb a {
    color: white;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   User Dashboard Styles
   ======================================== */
.user-dashboard {
    padding: var(--space-xl) 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.dashboard-welcome {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.welcome-text h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.welcome-text h1 span {
    color: var(--primary-color);
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 15px;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

/* Quick Action Cards */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.quick-action-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    text-decoration: none;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.quick-action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 24px;
}

.quick-action-icon.blue {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.quick-action-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.quick-action-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.quick-action-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.quick-action-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.quick-action-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-lg);
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dashboard-card .card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card .card-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card .card-header h3 i {
    color: var(--primary-color);
}

.dashboard-card .card-body {
    padding: var(--space-lg);
}

/* Appointment List Item */
.appointment-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    margin-bottom: var(--space-md);
    transition: var(--transition-base);
}

.appointment-item:last-child {
    margin-bottom: 0;
}

.appointment-item:hover {
    background: var(--bg-gray);
}

.appointment-date-box {
    text-align: center;
    padding: var(--space-md);
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-md);
    min-width: 70px;
}

.appointment-date-box .day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.appointment-date-box .month {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 4px;
}

.appointment-details {
    flex: 1;
}

.appointment-details h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.appointment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.appointment-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.appointment-meta span i {
    color: var(--primary-color);
    font-size: 12px;
}

.appointment-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.status-completed {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* Saved Clinic Item */
.saved-clinic-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    margin-bottom: var(--space-md);
    transition: var(--transition-base);
}

.saved-clinic-item:last-child {
    margin-bottom: 0;
}

.saved-clinic-item:hover {
    background: var(--bg-gray);
}

.saved-clinic-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.saved-clinic-item .clinic-info {
    flex: 1;
    padding: 0;
}

.saved-clinic-item .clinic-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.saved-clinic-item .clinic-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* View All Button */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-base);
    text-decoration: none;
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   Empty States
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ========================================
   Filters & Search
   ======================================== */
.filters-bar {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.filters-row {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: var(--transition-base);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border: none;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-secondary);
}

.filter-tab:hover {
    background: var(--bg-gray);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   Modern Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: white;
}

.footer-top {
    padding: var(--space-2xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   Notification Dropdown (Modern)
   ======================================== */
.notification-bell {
    position: relative;
}

.notification-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-base);
}

.notification-btn:hover {
    background: var(--bg-gray);
}

.notification-btn i {
    font-size: 18px;
    color: var(--text-secondary);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 1000;
    border: 1px solid var(--border-light);
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    font-size: 15px;
    font-weight: 600;
}

.notification-header a {
    font-size: 13px;
    color: var(--primary-color);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.notification-item:hover {
    background: var(--bg-light);
}

.notification-item.unread {
    background: rgba(37, 99, 235, 0.03);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-icon.bg-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.notification-icon.bg-primary {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.notification-icon.bg-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.notification-content p {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.notification-footer {
    display: block;
    text-align: center;
    padding: var(--space-md);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid var(--border-light);
}

/* ========================================
   Profile Dropdown (Modern)
   ======================================== */
.nav-profile {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
}

.profile-btn:hover {
    background: var(--bg-gray);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-btn i {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 1000;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.dropdown-header img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-header h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dropdown-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px var(--space-lg);
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.dropdown-menu a i {
    width: 20px;
    font-size: 16px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

.logout-link {
    color: var(--accent-red) !important;
}

.logout-link i {
    color: var(--accent-red) !important;
}

/* ========================================
   Forms (Modern)
   ======================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-base);
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 13px;
    color: var(--accent-red);
    margin-top: 6px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .clinics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .clinics-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .quick-action-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .filters-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quick-action-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .appointment-item {
        flex-direction: column;
    }
    
    .appointment-date-box {
        display: flex;
        align-items: center;
        gap: var(--space-md);
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--accent-green) !important; }
.text-warning { color: var(--accent-orange) !important; }
.text-danger { color: var(--accent-red) !important; }

.bg-primary { background: var(--primary-color) !important; }
.bg-light { background: var(--bg-light) !important; }
.bg-white { background: white !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }

.p-lg { padding: var(--space-lg) !important; }
.p-xl { padding: var(--space-xl) !important; }

.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.hidden { display: none !important; }
.visible { visibility: visible !important; }

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.3s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}
