@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --medical-white: #f8fafc;
    --medical-grid: #cbd5e1;
    --emergency-red: #dc2626;
    --success-green: #16a34a;
    --slate-dark: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--medical-white);
    color: var(--slate-dark);
    overflow-x: hidden;
    /* Essential for mobile landscape to allow scrolling */
    min-height: 100vh;
}

/* Medical Grid Background */
.grid-bg {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.15) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
}

/* ECG Animation */
.ecg-line {
    stroke-dasharray: 920; 
    stroke-dashoffset: 920; 
    animation: dash 2.5s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

/* Utilities */
.hidden-section { display: none !important; }

.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* Card Styling */
.clinical-card {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--emergency-red);
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 200px;
}

/* Form Styling (Less Techy) */
.medical-input {
    width: 100%;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace; /* Keep mono for code, but clean */
    font-size: 1.1rem;
    background: #f8fafc;
    color: #334155;
    transition: all 0.2s;
}
.medical-input:focus {
    outline: none;
    border-color: var(--emergency-red);
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
