/* ============================================
   NURSES LEBANON - Modern Design System
   Lebanon-inspired healthcare platform
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,400&display=swap');

/* ============================================
   CSS Variables - Design Tokens
   ============================================ */
:root {
    /* Primary Colors - Cedar Green inspired */
    --color-primary: #1a5f4a;
    --color-primary-dark: #0d3d2f;
    --color-primary-light: #2d7a62;
    --color-primary-soft: #e8f5f0;
    /* Accent Colors - Warm Lebanese palette */
    --color-accent: #c45c3e;
    --color-accent-light: #e07a5e;
    --color-accent-soft: #fef3f0;
    /* Neutral Colors */
    --color-bg: #faf9f7;
    --color-bg-warm: #f5f3ef;
    --color-surface: #ffffff;
    --color-surface-raised: #ffffff;
    --color-border: #e5e2dc;
    --color-border-light: #f0ede8;
    /* Text Colors */
    --color-text: #1a1a1a;
    --color-text-muted: #5a5a5a;
    --color-text-light: #8a8a8a;
    --color-text-inverse: #ffffff;
    /* Status Colors */
    --color-success: #2d7a62;
    --color-warning: #d4a04a;
    --color-warning-bg: #fef8e8;
    --color-warning-border: #f0d77a;
    --color-error: #c45c3e;
    --color-error-bg: #fef3f0;
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(26, 95, 74, 0.15);
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    /* Container Width */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-tight: 560px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-error); }
.text-center { text-align: center; }

/* ============================================
   Layout - Container
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.container-tight {
    max-width: var(--container-tight);
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.navbar-small-logo {
    height: 32px;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover {
    color: var(--color-primary-dark);
}

.navbar-brand::before {
    display: none;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    align-items: center;
}

.navbar-menu li a {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-menu li a:hover {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.navbar-menu li a.active {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    font-weight: 600;
}

.navbar-menu .nav-cta {
    background: var(--color-primary);
    color: var(--color-text-inverse) !important;
    padding: var(--space-sm) var(--space-lg);
}

.navbar-menu .nav-cta:hover {
    background: var(--color-primary-dark);
}

.navbar-menu .nav-cta.active {
    background: var(--color-primary);
    color: var(--color-text-inverse) !important;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: white;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: background var(--transition-fast);
    gap: 4px;
}

.navbar-toggle:hover {
    background: var(--color-primary-soft);
}

.navbar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 0;
    transition: all var(--transition-fast);
    transform-origin: center;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hamburger menu animation when active */
.navbar-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.navbar-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.navbar-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   Warning Banner
   ============================================ */
.warning-banner {
    background: linear-gradient(135deg, var(--color-warning-bg) 0%, #fef5dc 100%);
    border-bottom: 1px solid var(--color-warning-border);
    padding: var(--space-md) 0;
}

.warning-banner p {
    margin: 0;
    color: #7a5c1a;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
    justify-content: center;
}

.warning-banner a {
    color: #7a5c1a;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(122, 92, 26, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.warning-banner a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7a5c1a, #5a4c1a);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.warning-banner a:hover {
    color: #5a4c1a;
    text-decoration-thickness: 2px;
    text-decoration-color: #5a4c1a;
    transform: translateY(-1px);
    text-shadow: 0 1px 2px rgba(122, 92, 26, 0.2);
}

.warning-banner a:hover::after {
    width: 100%;
}

.warning-banner a:active {
    transform: translateY(0);
    text-shadow: 0 1px 1px rgba(122, 92, 26, 0.3);
}

/* Mobile warning banner adjustments */
@media (max-width: 768px) {
    .warning-banner {
        padding: var(--space-sm) 0;
    }
    
    .warning-banner p {
        font-size: 0.75rem;
        padding: 0 var(--space-md);
        line-height: 1.3;
    }
}


/* ============================================
   Main Content
   ============================================ */
main {
    flex: 1;
    padding: var(--space-2xl) 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #2E7D32;
    color: var(--color-text-inverse);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
    border-radius: 12px;
    line-height: 1.2;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.btn-primary:hover:not(:disabled) {
    background: #388E3C;
    color: var(--color-text-inverse);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-bg-warm);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-border);
    color: var(--color-text);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-text-inverse);
    box-shadow: 0 2px 8px rgba(196, 92, 62, 0.25);
}

.btn-accent:hover:not(:disabled) {
    background: var(--color-accent-light);
    color: var(--color-text-inverse);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    border-radius: 12px;
}

.btn-google:hover:not(:disabled) {
    background: #f8f9fa;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    border-color: #dadce0;
}

.btn-google:active:not(:disabled) {
    background: #f1f3f4;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.btn-google svg {
    flex-shrink: 0;
}

.btn-success {
    background: var(--color-success);
    color: var(--color-text-inverse);
}

.btn-success:hover:not(:disabled) {
    background: #256b54;
    color: var(--color-text-inverse);
}

.btn-danger {
    background: var(--color-error);
    color: var(--color-text-inverse);
}

.btn-danger:hover:not(:disabled) {
    background: #a34830;
    color: var(--color-text-inverse);
}

.btn-reset {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: #ffffff;
    border: 1px solid #b71c1c;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
}

.btn-reset:hover:not(:disabled) {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    color: #ffffff;
    border-color: #8b0000;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-warning {
    background: var(--color-warning);
    color: var(--color-text-inverse);
}

.btn-link {
    background: none;
    color: var(--color-primary);
    padding: 0;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.form-group label.required::after {
    content: " *";
    color: var(--color-error);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.2;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea.form-control {
    resize: vertical;
    min-height: 2.875rem; /* Match button height */
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.floating-input {
    padding-top: 1.25rem !important;
}

.floating-label {
    position: absolute;
    top: 0.875rem;
    left: 50%;
    transform: translateX(-50%);
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--color-surface);
    padding: 0 0.25rem;
    z-index: 1;
}

.floating-label-left {
    position: absolute;
    top: 0.875rem;
    left: 1rem;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--color-surface);
    padding: 0 0.25rem;
    z-index: 1;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
}

.floating-input:focus ~ .floating-label-left,
.floating-input:not(:placeholder-shown) ~ .floating-label-left {
    top: -0.5rem;
    left: 1rem;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
}

.floating-input:focus ~ .floating-label {
    color: var(--color-primary);
}

.floating-select:focus ~ .floating-label,
.floating-select:not(:placeholder-shown) ~ .floating-label {
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
}

.floating-select:focus ~ .floating-label {
    color: var(--color-primary);
}

.form-control:disabled {
    background: var(--color-bg-warm);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

input[list] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 1rem !important;
}

input[list]::-webkit-calendar-picker-indicator,
input[list]::-webkit-inner-spin-button,
input[list]::-webkit-outer-spin-button,
input[list]::-webkit-search-decoration,
input[list]::-webkit-search-cancel-button,
input[list]::-webkit-search-results-button {
    display: none !important;
    -webkit-appearance: none !important;
}

input[list]::-ms-clear,
input[list]::-ms-reveal {
    display: none !important;
}

/* Specific targeting for subject input */
#subject {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#subject::-webkit-calendar-picker-indicator,
#subject::-webkit-inner-spin-button,
#subject::-webkit-outer-spin-button,
#subject::-webkit-search-decoration,
#subject::-webkit-search-cancel-button,
#subject::-webkit-search-results-button {
    display: none !important;
    -webkit-appearance: none !important;
}

#subject::-ms-clear,
#subject::-ms-reveal {
    display: none !important;
}

input[type="file"] {
    padding: 0.75rem;
    background: var(--color-bg-warm);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

input[type="file"]:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group small {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.form-actions {
    margin-top: var(--space-xl);
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.form-actions-inline {
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    align-items: center;
}

/* Validation */
.field-validation-error,
.text-danger {
    color: var(--color-error);
    font-size: 0.8125rem;
    margin-top: var(--space-xs);
    display: block;
}

.input-validation-error {
    border-color: var(--color-error) !important;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    margin-top: var(--space-lg);
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.alert::before {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5f0 0%, #d4edda 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-success::before {
    content: "✓";
}

.alert-error,
.alert-danger {
    background: linear-gradient(135deg, var(--color-error-bg) 0%, #f8d7da 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error::before,
.alert-danger::before {
    content: "!";
    font-weight: bold;
}

.alert-warning {
    background: linear-gradient(135deg, var(--color-warning-bg) 0%, #fff3cd 100%);
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-warning::before {
    content: "⚠";
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0c5460;
    border: 1px solid #91c7e8;
}

.alert-info::before {
    content: "ℹ";
}

/* ============================================
   Cards
   ============================================ */
.card, .card-no-hover {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.card-title {
    margin: 0;
    font-size: 1.25rem;
}

.card-body {
    color: var(--color-text-muted);
}

.card-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

/* Post & Nurse Cards */
.post-card,
.nurse-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover,
.nurse-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-primary-soft);
}

.post-card h3,
.nurse-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.post-card h3 a,
.nurse-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.post-card h3 a:hover,
.nurse-card h3 a:hover {
    color: var(--color-primary);
}

.post-meta,
.nurse-meta {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

.post-excerpt {
    color: var(--color-text-muted);
    flex: 1;
    margin-bottom: var(--space-md);
}

.post-type {
    display: inline-block;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--color-success) 0%, #3d9970 100%);
    color: var(--color-text-inverse);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.verified-badge::before {
    content: "✓";
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, var(--color-primary-soft) 0%, transparent 50%), radial-gradient(circle at 80% 20%, var(--color-accent-soft) 0%, transparent 50%);
        opacity: 0.6;
        pointer-events: none;
    }

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Page Sections
   ============================================ */
.section {
    margin-bottom: var(--space-3xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 1.75rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* ============================================
   Grids
   ============================================ */
.posts-grid,
.nurses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

/* ============================================
   Filters Section
   ============================================ */
.filters-section {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    align-items: end;
    width: 100%;
}

@media (max-width: 1200px) {
    .filter-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .filter-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.filter-group.buttons-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-buttons-row {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.filter-buttons-row .btn-primary,
.filter-buttons-row .btn-reset {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    padding: 0.75rem 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    min-width: 0;
}

.filter-group label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: left;
    flex-shrink: 0;
}

.filter-group .form-control {
    width: 100% !important;
}

.select-wrapper {
    position: relative;
    display: block;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 35px !important;
    background-image: none !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.2s ease;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    z-index: 2;
    user-select: none;
    background: white;
    padding: 2px;
    border-radius: 2px;
}

.select-wrapper select:focus + .select-arrow,
.select-wrapper select:active + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--color-primary);
}

/* Force override browser defaults */
.filter-group .form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* ============================================
   Profile & Listing Pages
   ============================================ */
.page-card {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    margin: 30px 0px;
}

.page-header {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--color-text-muted);
    margin: 0;
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Profile specific */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
}

.profile-sidebar {
    padding-right: var(--space-xl);
    border-right: 1px solid var(--color-border-light);
}

.profile-main {
    /* Main content area */
}

.profile-info dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-sm) var(--space-md);
}

.profile-info dt {
    font-weight: 500;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.profile-info dd {
    color: var(--color-text);
}

.contact-info {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-light);
}

/* ============================================
   Form Sections
   ============================================ */
.form-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border-light);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-lg);
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 1.375rem;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-section h2::before {
    content: "";
    width: 4px;
    height: 1.5rem;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Form Grid for side-by-side fields */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* ============================================
   Login & Auth Pages
   ============================================ */
.auth-page {
    max-width: var(--container-tight);
    margin: 0 auto;
    padding: 30px 0px;
}

.auth-card {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--color-text-muted);
    margin: 0;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: var(--space-xl) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--color-border);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: var(--color-surface);
    padding: 0 var(--space-md);
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.auth-section {
    margin-bottom: var(--space-xl);
}

.auth-section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

/* ============================================
   Role Selection Page
   ============================================ */
.role-selection-page {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.role-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.role-option {
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-card {
    display: block;
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    height: 100%;
}

.role-card:hover {
    border-color: var(--color-primary-light);
    background: var(--color-primary-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    box-shadow: var(--shadow-glow);
}

.role-option input[type="radio"]:focus + .role-card {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.role-card-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--space-lg);
}

.role-card h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.role-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.role-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-card ul li {
    padding: var(--space-sm) 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.role-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* ============================================
   Agreement Page
   ============================================ */
.agreement-page {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 30px 0px;
}

.agreement-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.agreement-section h2 {
    font-size: 1.375rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.agreement-content {
    max-height: 350px;
    overflow-y: auto;
    padding: var(--space-lg);
    background: var(--color-bg-warm);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
    border: 1px solid var(--color-border);
    font-size: 0.9375rem;
    line-height: 1.7;
}

#terms-content{
    max-height:600px;
}

.agreement-content::-webkit-scrollbar {
    width: 8px;
}

.agreement-content::-webkit-scrollbar-track {
    background: var(--color-border-light);
    border-radius: 4px;
}

.agreement-content::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 4px;
}

.agreement-timer {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--color-warning-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-warning-border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.agreement-timer::before {
    content: "⏱";
    font-size: 1.25rem;
}

.agreement-timer p {
    margin: 0;
    color: #856404;
    font-size: 0.9375rem;
}

.agreement-timer span {
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding:30px 0px;
}

.legal-card {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.legal-content {
    margin-top: var(--space-xl);
    line-height: 1.8;
    color: var(--color-text-muted);
}

.legal-content h2 {
    font-size: 1.375rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.legal-content h3 {
    font-size: 1.125rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.legal-content p {
    margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.legal-content li {
    margin-bottom: var(--space-sm);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: var(--space-lg);
}

.contact-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    width: 100%;
    max-width: 450px;
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.contact-header h1 {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   Admin Dashboard
   ============================================ */
.admin-dashboard {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-surface) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--color-border-light);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-display);
}

.admin-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
}

.admin-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.quick-link-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-soft);
    color: inherit;
}

.quick-link-card h3 {
    font-size: 1rem;
    color: var(--color-primary);
}

.quick-link-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Admin Tables */
.admin-table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
}

.admin-table th,
.admin-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.admin-table th {
    background: var(--color-bg-warm);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tr:hover {
    background: var(--color-bg);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Ad Placeholders
   ============================================ */
.ad-section {
    margin: var(--space-2xl) 0;
    text-align: center;
}

.ad-placeholder {
    background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-border-light) 100%);
    padding: var(--space-2xl);
    border-radius: var(--radius-md);
    color: var(--color-text-light);
    font-size: 0.875rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--color-border);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
    padding: var(--space-3xl) 0 var(--space-lg);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3 {
    color: var(--color-text-inverse);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
}

.footer-section h4 {
    color: var(--color-text-inverse);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    height: 24px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    text-align: justify;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-text-inverse);
}

.footer-section a.active {
    color: var(--color-text-inverse);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   Warning Box (inline)
   ============================================ */
.warning-box {
    background: linear-gradient(135deg, var(--color-warning-bg) 0%, #fff5e0 100%);
    border: 1px solid var(--color-warning-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    color: #7a5c1a;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.warning-box::before {
    content: "⚠️";
    flex-shrink: 0;
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    color: var(--color-text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.empty-state p {
    margin-bottom: var(--space-lg);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
        padding-right: 0;
        padding-bottom: var(--space-xl);
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: var(--space-md);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu li a {
        width: 100%;
        padding: var(--space-md);
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .hero-section {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1.0625rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .posts-grid,
    .nurses-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .role-options {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page-card,
    .auth-card,
    .legal-card,
    .contact-card {
        padding: var(--space-lg);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.4s ease forwards;
}

/* Staggered animations for grid items */
.posts-grid > *,
.nurses-grid > * {
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

.posts-grid > *:nth-child(1),
.nurses-grid > *:nth-child(1) { animation-delay: 0.05s; }
.posts-grid > *:nth-child(2),
.nurses-grid > *:nth-child(2) { animation-delay: 0.1s; }
.posts-grid > *:nth-child(3),
.nurses-grid > *:nth-child(3) { animation-delay: 0.15s; }
.posts-grid > *:nth-child(4),
.nurses-grid > *:nth-child(4) { animation-delay: 0.2s; }
.posts-grid > *:nth-child(5),
.nurses-grid > *:nth-child(5) { animation-delay: 0.25s; }
.posts-grid > *:nth-child(6),
.nurses-grid > *:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   Print Styles
   ============================================ */
@media print {
    header,
    footer,
    .warning-banner,
    .ad-section,
    .btn,
    .navbar-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .page-card,
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   Admin Dashboard Styles
   ============================================ */

/* Admin Page Layout */
.admin-page,
.admin-dashboard {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
}

.admin-subtitle {
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--color-border-light);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card-warning {
    border-left: 4px solid var(--color-warning);
}

.stat-card-danger {
    border-left: 4px solid var(--color-error);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.stat-action {
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-top: var(--space-sm);
    text-decoration: none;
    font-weight: 500;
}

.stat-action:hover {
    text-decoration: underline;
}

/* Admin Grid Layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 480px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Section */
.admin-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Admin Tables */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--color-bg);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.admin-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: var(--color-bg-warm);
}

.admin-table tr.row-muted {
    opacity: 0.6;
}

.table-footer {
    padding: var(--space-md) 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff8e1;
    color: #f57c00;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge-info {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-secondary {
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.badge-lg {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.empty-state-large {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-state-large .empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: var(--space-md);
}

.empty-state-large h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.empty-state-large p {
    color: var(--color-text-muted);
}

/* Quick Links */
.admin-quick-links {
    margin-top: var(--space-xl);
}

.admin-quick-links h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.quick-link-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.quick-link-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.quick-link-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.quick-link-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Admin Filters */
.admin-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
}

.filter-btn:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-soft);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

/* Nurse Review Container */
.nurse-review-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-xl);
}

@media (max-width: 900px) {
    .nurse-review-container {
        grid-template-columns: 1fr;
    }
}

.nurse-review-main {
    min-width: 0;
}

.nurse-review-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Review Card */
.review-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.review-card-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: var(--space-xl);
}

.review-card-header h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.status-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.review-sections {
    padding: var(--space-lg);
}

.review-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.info-value {
    font-size: 1rem;
    color: var(--color-text);
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.document-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
}

.document-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.document-icon {
    font-size: 1.5rem;
}

.document-name {
    flex: 1;
    font-weight: 500;
}

.document-action {
    font-size: 0.875rem;
    opacity: 0.8;
}

.document-missing {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-warning-bg);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    border: 1px dashed var(--color-warning);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.timeline-item.timeline-success {
    background: #e8f5e9;
}

.timeline-item.timeline-danger {
    background: #ffebee;
}

.timeline-icon {
    font-size: 1.25rem;
}

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-content strong {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.timeline-content span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Action Card */
.action-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.action-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.action-form {
    margin-bottom: var(--space-md);
}

.action-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

.action-divider {
    margin: var(--space-lg) 0;
    border: none;
    border-top: 1px solid var(--color-border-light);
}

.interview-confirmed {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: #e8f5e9;
    border-radius: var(--radius-md);
    color: #2e7d32;
    font-weight: 500;
}

.check-icon {
    font-size: 1.25rem;
}

.decision-made {
    text-align: center;
}

.decision-approved {
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.decision-rejected {
    color: #c62828;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.rejection-reason {
    background: #ffebee;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 0.9rem;
    margin-top: var(--space-md);
}

/* Reports */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.report-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border-left: 4px solid var(--color-warning);
}

.report-card.report-reviewed {
    border-left-color: var(--color-success);
    opacity: 0.8;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
}

.report-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.report-body {
    padding: var(--space-lg);
}

.report-parties {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.report-party {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.party-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.party-link {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
}

.party-link:hover {
    text-decoration: underline;
}

.party-email {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.report-arrow {
    font-size: 1.5rem;
    color: var(--color-text-light);
}

.report-reason {
    background: var(--color-bg);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.reason-label,
.details-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-xs);
}

.report-details {
    padding: var(--space-md);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.reviewed-info {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.report-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Legal Documents */
.info-banner {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: #e3f2fd;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    align-items: flex-start;
}

.info-banner .info-icon {
    font-size: 1.5rem;
}

.info-banner strong {
    display: block;
    margin-bottom: var(--space-xs);
}

.info-banner p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.legal-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.legal-doc-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.legal-doc-card.inactive {
    opacity: 0.6;
}

.legal-doc-header {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
}

.doc-type-icon {
    font-size: 2rem;
}

.doc-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.doc-type {
    font-size: 0.8rem;
    opacity: 0.8;
}

.legal-doc-body {
    padding: var(--space-lg);
}

.version-info {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.version-badge {
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.doc-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.doc-preview {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
}

.legal-doc-footer {
    padding: var(--space-lg);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.no-active-warning {
    color: var(--color-error);
    font-weight: 500;
}

.version-history {
    border-top: 1px solid var(--color-border-light);
}

.version-history details {
    padding: var(--space-md) var(--space-lg);
}

.version-history summary {
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.version-list {
    list-style: none;
    margin-top: var(--space-md);
}

.version-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-border-light);
}

.version-list li:last-child {
    border-bottom: none;
}

.version-num {
    font-weight: 600;
    color: var(--color-primary);
}

.version-date {
    flex: 1;
    color: var(--color-text-muted);
}

.version-view {
    color: var(--color-primary);
    text-decoration: none;
}

.version-view:hover {
    text-decoration: underline;
}

/* Edit Document */
.edit-doc-container {
    max-width: 900px;
}

.edit-doc-info {
    margin-bottom: var(--space-xl);
}

.doc-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.meta-value {
    font-weight: 500;
}

.edit-doc-form {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.code-editor {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.editor-help {
    margin-top: var(--space-lg);
}

.editor-help summary {
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 500;
}

.help-content {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.help-content code {
    background: var(--color-surface);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* Button Block */
.btn-block {
    display: block;
    width: 100%;
}

/* Text utilities */
.text-muted {
    color: var(--color-text-muted);
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-lg);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: 100%;
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-error);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-body p {
    margin: 0 0 var(--space-md) 0;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-footer form {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Danger Zone */
.danger-zone {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    border: 2px solid var(--color-error);
    border-radius: var(--radius-lg);
    background: var(--color-error-bg);
}

.danger-zone h2 {
    color: var(--color-error);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.danger-zone p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

/* Profile Actions Bar */
.profile-actions-bar {
    display: flex;
    gap: var(--space-sm);
    align-items: stretch;
}

.profile-actions-bar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 44px;
}

/* Page Title Row */
.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .page-title-row {
        flex-direction: column;
    }
    
    .profile-actions-bar {
        width: 100%;
    }
    
    .profile-actions-bar .btn {
        flex: 1;
    }
}

/* Profile Content Layout */
.profile-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
}

.profile-sidebar {
    background: var(--color-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    height: fit-content;
}

.profile-main {
    min-width: 0;
}

.profile-info dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-sm) var(--space-md);
}

.profile-info dt {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.profile-info dd {
    margin: 0;
    font-weight: 500;
}

.contact-info {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--color-success);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Help Box */
.form-help-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.form-help-box strong {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.form-help-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.form-help-box li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.form-help-box li:last-child {
    margin-bottom: 0;
}

/* Input Validation Error */
.input-validation-error {
    border-color: var(--color-error) !important;
    box-shadow: 0 0 0 2px rgba(196, 92, 62, 0.2) !important;
}

/* Agreement Header with Download Button */
.agreement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    flex-wrap: wrap;
}

.agreement-header h1,
.agreement-header h2 {
    margin: 0;
}

.agreement-header .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .agreement-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .agreement-header .btn {
        width: 100%;
        text-align: center;
    }
}

/* Agreement Timer */
.agreement-timer {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    text-align: center;
}

.agreement-timer p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.95rem;
}

.agreement-timer #terms-timer,
.agreement-timer #nurse-timer {
    display: inline-block;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    min-width: 2rem;
}

/* Button ready animation */
.btn-ready {
    animation: pulse-ready 1s ease-in-out;
}

@keyframes pulse-ready {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(26, 95, 74, 0.4); }
    100% { transform: scale(1); }
}

/* Agreement Section */
.agreement-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.agreement-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.agreement-section h2 {
    margin-bottom: var(--space-md);
}
