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

:root {
    /* Aafiyat.ca Official Color Scheme */
    --primary-blue: #1565c0;
    --primary-blue-dark: #0d47a1;
    --primary-blue-light: #1976d2;
    --secondary-blue: #2196f3;
    --accent-green: #4caf50;
    --accent-green-dark: #388e3c;
    --accent-green-light: #81c784;
    --teal: #00838f;
    --teal-light: #26c6da;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #f5f7fa;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Text Colors */
    --text-dark: #1a1a2e;
    --text-primary: #2c3e50;
    --text-secondary: #546e7a;
    --text-muted: #78909c;
    
    /* Status Colors */
    --success: #4caf50;
    --success-light: #e8f5e9;
    --error: #e53935;
    --error-light: #ffebee;
    --warning: #ff9800;
    --warning-light: #fff3e0;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
    
    /* Borders */
    --border-light: #e8eaf6;
    --border-medium: #c5cae9;
}

/* Font Import - Modern Medical Sans */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--off-white);
    min-height: 100vh;
}

/* ========================================
   TOP CONTACT BAR - Aafiyat Style
======================================== */
.top-bar {
    background: linear-gradient(180deg, var(--gray-900) 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 0.625rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item svg {
    width: 16px;
    height: 16px;
}

.top-bar-item a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-bar-item a:hover {
    opacity: 0.85;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
}

.social-links svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   MAIN HEADER - Aafiyat Style
======================================== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-icon {
    width: 180px;
    height: auto;
    min-height: 60px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: none;
    padding: 0;
}

.logo-icon svg,
.logo-icon img {
    width: 100%;
    height: auto;
    max-height: 80px;
    color: var(--white);
}

.logo-icon img {
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1.2;
    margin: 0;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.header-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.header-contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.header-contact-item a:hover {
    color: var(--accent-green);
}

.header-social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.header-social-links a:hover {
    background: var(--accent-green);
    color: var(--white);
    transform: translateY(-2px);
}

.header-social-links svg {
    width: 18px;
    height: 18px;
}

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

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--gray-100);
    color: var(--accent-green);
}

.header-cta {
    display: flex;
    gap: 0.75rem;
}

.btn-book {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-book svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

/* ========================================
   CONTAINER
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

/* ========================================
   PAGE HEADER / HERO SECTION
======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal) 100%);
    padding: 3rem 0;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.page-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;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-content {
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-hero .badge svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   ALERT MESSAGES
======================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    border: 1px solid;
}

.alert svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: var(--success-light);
    border-color: var(--success);
    color: #1b5e20;
}

.alert-error {
    background: var(--error-light);
    border-color: var(--error);
    color: #b71c1c;
}

.alert.hidden {
    display: none;
}

/* ========================================
   CARD STYLING
======================================== */
.card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* ========================================
   FORM SECTIONS
======================================== */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 12px 12px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal) 100%);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   FORM GRID
======================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

/* ========================================
   FORM LABELS & INPUTS
======================================== */
label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.required {
    color: var(--error);
    margin-left: 2px;
}

.field-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.825rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-medium);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
    background: var(--white);
    color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: var(--primary-blue-light);
}

input::placeholder {
    color: var(--gray-500);
}

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

/* ========================================
   CHECKBOX STYLING
======================================== */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.5rem 0;
}

input[type="checkbox"] {
    width: 1.375rem;
    height: 1.375rem;
    border: 2px solid var(--border-medium);
    border-radius: 6px;
    cursor: pointer;
    accent-color: var(--accent-green);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========================================
   RADIO BUTTONS
======================================== */
.radio-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: block;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
    background: var(--white);
}

.radio-option:hover {
    border-color: var(--primary-blue-light);
    background: var(--gray-50);
}

.radio-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary-blue);
    margin: 0;
    flex-shrink: 0;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.05) 0%, rgba(0, 131, 143, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.radio-option:has(input[type="radio"]:checked) label {
    color: var(--primary-blue);
    font-weight: 600;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

/* ========================================
   CONSENT BOX
======================================== */
.consent-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(129, 199, 132, 0.05) 100%);
    border: 2px solid var(--accent-green);
    border-radius: 12px;
    padding: 1.5rem;
}

.consent-box .checkbox-group {
    padding: 0;
}

/* ========================================
   BUTTONS
======================================== */
.button-group {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.35);
    min-width: 240px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-green-dark) 0%, #2e7d32 100%);
    box-shadow: 0 6px 24px rgba(76, 175, 80, 0.45);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--gray-50);
}

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

.btn-danger:hover {
    background: #c62828;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-blue);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--teal);
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   FOOTER - Aafiyat Style
======================================== */
.main-footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 0;
    margin-top: 3rem;
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand {
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand .logo-section {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.footer-brand .logo-icon {
    background: transparent;
    width: 180px;
    height: auto;
    min-height: 60px;
    max-height: 80px;
}

.footer-brand .logo-text h1 {
    color: var(--white);
    font-size: 1.35rem;
}

.footer-brand .logo-text span {
    color: var(--gray-400);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent-green);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-section h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.925rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.footer-links a svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-links a:hover svg {
    opacity: 1;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-green);
}

.footer-contact-text {
    flex: 1;
}

.footer-contact-text strong {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-contact-text span,
.footer-contact-text a {
    color: var(--gray-400);
    font-size: 0.875rem;
    text-decoration: none;
}

.footer-contact-text a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--accent-green);
}

/* ========================================
   ADMIN DASHBOARD STYLES
======================================== */
.admin-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal) 100%);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 0;
    margin-bottom: 2rem;
    color: var(--white);
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin: 0 auto;
}

.admin-title h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.admin-title p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.tabs {
    background: var(--white);
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.tabs .container {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

.tab {
    padding: 1rem 0.75rem;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab:hover {
    color: var(--primary-blue);
    border-color: var(--gray-200);
}

.tab.active {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

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

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-info p {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.patient-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.patient-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue-light);
}

.patient-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.patient-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.patient-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.patient-details strong {
    color: var(--text-dark);
    font-weight: 600;
}

.patient-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin: 0 auto 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
}

.loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    
    .header-contact-item {
        font-size: 0.8rem;
    }
    
    .header-social-links {
        width: 100%;
        justify-content: flex-start;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        padding: 0.875rem 1rem;
    }
    
    .section-number {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
    
    .radio-option {
        padding: 0.875rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .admin-header .container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .patient-info {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 1.5rem 0.75rem;
    }
    
    .page-hero {
        padding: 2rem 0;
    }
    
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1rem;
        padding: 0.75rem 0.875rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .radio-option {
        padding: 0.75rem 0.875rem;
    }
    
    .logo-section {
        gap: 0.625rem;
    }
    
    .logo-icon {
        width: 140px;
        height: auto;
        min-height: 50px;
        max-height: 60px;
    }
    
    .logo-icon svg,
    .logo-icon img {
        width: 100%;
        height: auto;
        max-height: 60px;
    }
    
    .logo-icon img {
        object-fit: contain;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
}
