/* SanaCare Premium Stylesheet - CSS Design System */

/* CSS Variables & Theme Definitions */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme-independent layout sizes */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Theme (Default) */
.dark-theme {
    --bg-primary: #0b0f19;
    --bg-secondary: #121826;
    --bg-glass: rgba(18, 24, 38, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-primary: #10b981; /* Emerald/Medical Green */
    --accent-secondary: #06b6d4; /* Cyan/Teal */
    --accent-glow: rgba(16, 185, 129, 0.15);
    
    --card-bg: rgba(22, 28, 45, 0.7);
    --input-bg: rgba(13, 17, 28, 0.8);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus-border: #10b981;
    
    --status-pending-bg: rgba(245, 158, 11, 0.15);
    --status-pending-text: #fbbf24;
    --status-approved-bg: rgba(59, 130, 246, 0.15);
    --status-approved-text: #60a5fa;
    --status-dispatched-bg: rgba(139, 92, 246, 0.15);
    --status-dispatched-text: #a78bfa;
    --status-delivered-bg: rgba(16, 185, 129, 0.15);
    --status-delivered-text: #34d399;
}

/* Light Theme */
.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.06);
    --shadow-glass: 0 12px 40px 0 rgba(31, 38, 135, 0.06);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #059669; /* Richer Medical Green */
    --accent-secondary: #0891b2; /* Richer Teal */
    --accent-glow: rgba(5, 150, 105, 0.08);
    
    --card-bg: rgba(255, 255, 255, 0.9);
    --input-bg: #f1f5f9;
    --input-border: rgba(0, 0, 0, 0.1);
    --input-focus-border: #059669;
    
    --status-pending-bg: rgba(217, 119, 6, 0.12);
    --status-pending-text: #b45309;
    --status-approved-bg: rgba(29, 78, 216, 0.12);
    --status-approved-text: #1d4ed8;
    --status-dispatched-bg: rgba(109, 40, 217, 0.12);
    --status-dispatched-text: #6d28d9;
    --status-delivered-bg: rgba(4, 120, 87, 0.12);
    --status-delivered-text: #047857;
}

/* Global Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Ambient Glows */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -10;
    opacity: 0.15;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(0,0,0,0) 70%);
}

.glow-2 {
    top: 600px;
    left: -200px;
    background: radial-gradient(circle, var(--accent-primary) 0%, rgba(0,0,0,0) 70%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    flex: 1;
}

/* Nav Header */
.main-header {
    background-color: rgba(11, 15, 25, 0.01);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.accent-text {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--accent-primary);
}

.btn-nav-secondary {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-nav-secondary:hover {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--input-bg);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.theme-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.dark-theme .icon-sun,
.light-theme .icon-moon {
    display: none;
}

/* Volunteer Mode Toggle Button */
.btn-admin {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.badge-admin {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: var(--input-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.badge-admin.active {
    background-color: var(--accent-secondary);
    color: #fff;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* Common Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Panels */
.glass-panel {
    background-color: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    border-radius: var(--border-radius-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    padding: 80px 0;
    align-items: center;
}

.tagline-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background-color: var(--accent-glow);
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.accent-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 16px;
    border-left: 3px solid var(--accent-primary);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #059669 100%);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: var(--input-bg);
    border-color: var(--text-secondary);
}

.btn-submit {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #fff;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

/* Hero Visual Art */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.medical-art {
    width: 320px;
    height: 320px;
    position: relative;
}

.map-outline {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-svg {
    width: 100%;
    height: 100%;
    animation: rotateSlow 20s linear infinite;
}

.pulse-point {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

.pulse-point::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    animation: pulseGlow 2s ease-out infinite;
}

.pt-1 { top: 30%; left: 35%; }
.pt-2 { top: 60%; left: 65%; }
.pt-3 { top: 45%; left: 50%; animation-delay: 0.5s; }

/* Founder Section */
.founder-section {
    padding: 80px 0;
}

.founder-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 48px;
    padding: 40px;
    align-items: center;
}

.founder-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 2px solid var(--border-glass);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1 / 1;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-bounce);
}

.founder-card:hover .founder-img {
    transform: scale(1.03);
}

.founder-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    padding: 16px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.founder-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.founder-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}

.founder-title {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 16px;
    margin-top: -12px;
}

.founder-quote {
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 20px;
    margin: 10px 0;
    font-size: 16px;
}

.founder-achievements {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.achievement-icon {
    font-size: 18px;
}

.founder-contact {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.founder-contact a {
    color: var(--accent-primary);
    text-decoration: none;
}

.founder-contact .divider {
    margin: 0 10px;
}

/* Steps Progress Container */
.steps-progress-container {
    margin-bottom: 24px;
    padding: 24px 40px;
    position: relative;
}

.progress-bar-background {
    position: absolute;
    height: 4px;
    background-color: var(--input-bg);
    left: 10%;
    right: 10%;
    top: calc(24px + 18px); /* aligned to center of node circle */
    z-index: 1;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-glow);
}

.step-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.node-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.node-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.step-node.active .node-num {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

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

.step-node.completed .node-num {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.step-node.completed .node-label {
    color: var(--accent-primary);
}

/* Eligibility Wizard Form Steps */
.checker-wrapper {
    padding: 40px;
    margin-bottom: 80px;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

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

.step-title-container {
    margin-bottom: 32px;
}

.step-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Form Layout Grids */
.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

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

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.required {
    color: #ef4444;
}

.form-input, .form-textarea {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.select-input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    cursor: pointer;
}

.custom-select-wrapper::after {
    content: '▼';
    font-size: 10px;
    color: var(--text-secondary);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

/* Real-time Address Eligibility Box */
.verification-status-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 32px;
    transition: var(--transition-smooth);
}

.status-icon-container {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.status-icon-container svg {
    width: 100%;
    height: 100%;
    display: none;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-title {
    font-size: 16px;
    font-weight: 600;
}

.status-msg {
    font-size: 14px;
}

/* Status States styling */
.id-verification-pending {
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}
.id-verification-pending .svg-warning { display: block; fill: #f59e0b; }

.id-verification-success {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-primary);
}
.id-verification-success .svg-success { display: block; fill: var(--accent-primary); }

.id-verification-error {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}
.id-verification-error .svg-error { display: block; fill: #ef4444; }

/* Prescription File Upload Zone */
.prescription-upload-zone {
    border: 2px dashed var(--input-border);
    border-radius: var(--border-radius-sm);
    padding: 30px;
    text-align: center;
    background-color: var(--input-bg);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.prescription-upload-zone:hover, .prescription-upload-zone.dragover {
    border-color: var(--accent-primary);
    background-color: rgba(16, 185, 129, 0.02);
}

.file-hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: var(--text-muted);
    transition: var(--transition-smooth);
}

.prescription-upload-zone:hover .upload-icon {
    fill: var(--accent-primary);
}

.upload-primary-text {
    font-size: 15px;
    font-weight: 500;
}

.browse-link {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 600;
}

.upload-secondary-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Upload Preview Container */
.upload-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    position: relative;
    z-index: 20;
}

.upload-preview.hidden {
    display: none;
}

.file-thumbnail {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--input-bg);
    border: 1px solid var(--border-glass);
}

.file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-thumbnail svg {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
}

.file-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-remove-file {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-smooth);
}

.btn-remove-file:hover {
    color: #ef4444;
}

.step-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

/* Dashboard Tracker */
.dashboard-section {
    padding: 80px 0;
}

.tracker-controls {
    margin-bottom: 24px;
    padding: 24px;
}

.search-box-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    transition: var(--transition-smooth);
}

.search-box-container:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.search-input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-body);
    font-size: 15px;
    flex: 1;
}

.btn-search {
    padding: 8px 20px;
    background-color: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-search:hover {
    background-color: #059669;
}

/* Dashboard Panel & Table */
.dashboard-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-glass);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.volunteer-notice {
    font-size: 13px;
    color: var(--accent-secondary);
}

.volunteer-notice.hidden {
    display: none;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.requests-table th {
    padding: 16px 32px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
    background-color: rgba(0, 0, 0, 0.05);
}

.requests-table td {
    padding: 16px 32px;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.requests-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.requests-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.status-badge.status-pending {
    background-color: var(--status-pending-bg);
    color: var(--status-pending-text);
}

.status-badge.status-approved {
    background-color: var(--status-approved-bg);
    color: var(--status-approved-text);
}

.status-badge.status-dispatched {
    background-color: var(--status-dispatched-bg);
    color: var(--status-dispatched-text);
}

.status-badge.status-delivered {
    background-color: var(--status-delivered-bg);
    color: var(--status-delivered-text);
}

.requests-table td .btn-secondary {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--border-radius-sm);
}

/* Admin panel status cycle pointer */
.admin-badge-clickable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.admin-badge-clickable:hover::after {
    content: 'Click to Change';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay:not(.hidden) .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #ef4444;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
}

/* Modal Content Details */
.detail-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-glass);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
}

.detail-prescription-img {
    max-width: 100%;
    max-height: 250px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-glass);
    margin-top: 8px;
    object-fit: contain;
}

/* Toast Notification Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
    max-width: 380px;
    width: 100%;
}

.toast {
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               fadeOut 0.3s ease-in 4.7s forwards;
    position: relative;
    overflow: hidden;
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--accent-primary);
    animation: toastProgress 5s linear forwards;
}

.toast-success {
    border-left: 4px solid var(--accent-primary);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error::after {
    background-color: #ef4444;
}

/* Footer Section */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 48px 0 24px 0;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 12px;
}

.footer-tagline {
    max-width: 300px;
    color: var(--text-muted);
}

.footer-info h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-info p {
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Responsive Media Queries */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0;
        gap: 32px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }
    
    .founder-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 32px;
        text-align: center;
    }
    
    .founder-image-wrapper {
        max-width: 250px;
        margin: 0 auto;
    }

    .founder-quote {
        border-left: none;
        border-top: 2px solid var(--accent-primary);
        border-bottom: 2px solid var(--accent-primary);
        padding: 16px 0;
    }
}

@media (max-width: 768px) {
    .col-4, .col-6, .col-8 {
        grid-column: span 12;
    }
    
    .header-container {
        padding: 0 16px;
    }

    .nav-links {
        display: none; /* simple hidden nav for mobile */
    }
    
    .steps-progress-container {
        padding: 16px;
    }
    
    .progress-bar-background {
        left: 15%;
        right: 15%;
    }
    
    .node-label {
        font-size: 11px;
    }
    
    .checker-wrapper {
        padding: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
