/* ============================================
   Ravenhollow Clinical System - EHR Styles
   A realistic NHS-style clinical system UI
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nhs-blue: #005eb8;
    --nhs-dark-blue: #003087;
    --nhs-light-blue: #41b6e6;
    --nhs-green: #009639;
    --nhs-red: #da291c;
    --nhs-warm-yellow: #ffb81c;
    --nhs-grey-1: #231f20;
    --nhs-grey-2: #425563;
    --nhs-grey-3: #768692;
    --nhs-grey-4: #d8dde0;
    --nhs-grey-5: #f0f4f5;
    --nhs-white: #ffffff;
    --sidebar-width: 280px;
    --topbar-height: 48px;
    --banner-height: 80px;
    --tab-height: 44px;
    --notification-height: 36px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    --horror-red: #8b0000;
    --horror-green: #1a3a1a;
    --horror-glow: #00ff4488;
}

body {
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--nhs-grey-1);
    background: var(--nhs-grey-5);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.hidden {
    display: none !important;
}

/* ============================================
   Intro / Login Screen
   ============================================ */
.intro-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #003087 0%, #005eb8 40%, #003087 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: introFadeIn 1s ease-out;
}

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

.intro-content {
    text-align: center;
    color: white;
    max-width: 480px;
    width: 90%;
}

.intro-logo-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.intro-content h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.intro-version {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 32px;
}

.intro-login {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 24px;
}

.login-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.login-field:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
}

.login-field label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.login-value {
    font-size: 14px;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    padding: 12px 24px;
    background: var(--nhs-white);
    color: var(--nhs-dark-blue);
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: #e8edee;
    transform: translateY(-1px);
}

.intro-flavour {
    font-size: 13px;
    opacity: 0.6;
    line-height: 1.5;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    height: var(--topbar-height);
    background: var(--nhs-dark-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 12px;
    position: relative;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-name {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.3px;
}

.system-env {
    background: var(--nhs-green);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.system-date {
    opacity: 0.8;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    opacity: 0.9;
}

.status-indicator {
    font-size: 11px;
    color: #4ade80;
}

.status-indicator.warning {
    color: var(--nhs-warm-yellow);
}

.status-indicator.error {
    color: var(--nhs-red);
    animation: statusPulse 1s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   Notification Bar
   ============================================ */
.notification-bar {
    height: var(--notification-height);
    background: var(--nhs-warm-yellow);
    color: var(--nhs-grey-1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 500;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.notification-bar.urgent {
    background: var(--nhs-red);
    color: white;
}

.notification-bar.system-alert {
    background: #1a0a2e;
    color: #b388ff;
    font-family: var(--font-mono);
    animation: slideDown 0.3s ease-out, notificationGlitch 0.1s ease-in-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes notificationGlitch {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.notification-dismiss {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
}

.notification-dismiss:hover {
    opacity: 1;
}

/* ============================================
   Main Layout
   ============================================ */
.ehr-interface {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--nhs-white);
    border-right: 1px solid var(--nhs-grey-4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--nhs-grey-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nhs-grey-5);
}

.sidebar-header h2 {
    font-size: 13px;
    font-weight: 600;
    color: var(--nhs-grey-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patient-count {
    background: var(--nhs-blue);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.patient-list {
    flex: 1;
    overflow-y: auto;
}

.patient-card {
    padding: 12px 16px;
    border-bottom: 1px solid var(--nhs-grey-4);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.patient-card:hover {
    background: var(--nhs-grey-5);
}

.patient-card.active {
    background: #e8f4fd;
    border-left: 3px solid var(--nhs-blue);
}

.patient-card.reviewed {
    opacity: 0.6;
}

.patient-card.reviewed::after {
    content: "✓ Reviewed";
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    color: var(--nhs-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patient-card.new-arrival {
    animation: newPatientPulse 2s ease-in-out;
}

@keyframes newPatientPulse {
    0% { background: #fff3cd; }
    100% { background: transparent; }
}

.patient-card.horror {
    animation: horrorPulse 3s ease-in-out infinite;
    border-left: 3px solid var(--horror-red);
}

@keyframes horrorPulse {
    0%, 100% { background: rgba(139,0,0,0.03); }
    50% { background: rgba(139,0,0,0.08); }
}

.pc-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--nhs-grey-1);
    margin-bottom: 2px;
}

.pc-details {
    font-size: 11px;
    color: var(--nhs-grey-3);
    display: flex;
    gap: 8px;
}

.pc-time {
    font-size: 11px;
    color: var(--nhs-grey-3);
    margin-top: 4px;
}

.pc-urgency {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.pc-urgency.routine {
    background: #e8f5e9;
    color: #2e7d32;
}

.pc-urgency.urgent {
    background: #fff3e0;
    color: #e65100;
}

.pc-urgency.emergency {
    background: #ffebee;
    color: var(--nhs-red);
    animation: urgencyPulse 1.5s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.sidebar-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--nhs-grey-4);
    background: var(--nhs-grey-5);
    text-align: center;
}

.sidebar-clock {
    font-size: 18px;
    font-weight: 600;
    color: var(--nhs-grey-2);
    font-variant-numeric: tabular-nums;
}

/* ============================================
   No Patient View
   ============================================ */
.no-patient-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-patient-content {
    text-align: center;
    color: var(--nhs-grey-3);
}

.no-patient-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-patient-content h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.no-patient-content p {
    font-size: 13px;
}

.no-patient-hint {
    margin-top: 8px;
    font-style: italic;
    opacity: 0.7;
}

/* ============================================
   Patient View
   ============================================ */
.patient-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Patient Banner */
.patient-banner {
    background: var(--nhs-white);
    border-bottom: 2px solid var(--nhs-blue);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--banner-height);
}

.patient-banner.horror-banner {
    border-bottom-color: var(--horror-red);
    background: linear-gradient(90deg, #fff 80%, rgba(139,0,0,0.05) 100%);
}

.pv-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--nhs-grey-1);
    margin-bottom: 4px;
}

.pv-demographics {
    font-size: 12px;
    color: var(--nhs-grey-3);
    display: flex;
    gap: 4px;
    align-items: center;
}

.pv-sep {
    opacity: 0.4;
}

.pv-allergies {
    text-align: right;
}

.pv-allergies .allergy-badge {
    display: inline-block;
    background: #ffebee;
    color: var(--nhs-red);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #ffcdd2;
}

.pv-allergies .no-allergy {
    color: var(--nhs-green);
    font-size: 11px;
}

.pv-status {
    font-size: 11px;
    color: var(--nhs-grey-3);
    margin-top: 4px;
    text-align: right;
}

/* Record Tabs */
.record-tabs {
    display: flex;
    background: var(--nhs-grey-5);
    border-bottom: 1px solid var(--nhs-grey-4);
    padding: 0 12px;
}

.tab {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    font-weight: 500;
    color: var(--nhs-grey-3);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab:hover {
    color: var(--nhs-grey-1);
    background: rgba(0,0,0,0.02);
}

.tab.active {
    color: var(--nhs-blue);
    border-bottom-color: var(--nhs-blue);
    font-weight: 600;
}

.tab-icon {
    font-size: 14px;
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--nhs-grey-5);
}

/* Clinical Note Card */
.note-card {
    background: var(--nhs-white);
    border: 1px solid var(--nhs-grey-4);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.note-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.note-card.horror-note {
    border-color: rgba(139,0,0,0.3);
    background: #fffafa;
}

.note-card.redacted-note {
    border-color: var(--horror-red);
    background: #0a0a0a;
    color: #cc0000;
}

.note-header {
    padding: 10px 16px;
    background: var(--nhs-grey-5);
    border-bottom: 1px solid var(--nhs-grey-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-header.horror-header {
    background: rgba(139,0,0,0.05);
}

.note-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--nhs-grey-2);
}

.note-author {
    font-size: 11px;
    color: var(--nhs-grey-3);
}

.note-body {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--nhs-grey-1);
}

.note-body p {
    margin-bottom: 8px;
}

.note-body p:last-child {
    margin-bottom: 0;
}

.note-body strong {
    color: var(--nhs-grey-1);
}

.note-body .clinical-code {
    font-family: var(--font-mono);
    background: var(--nhs-grey-5);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 11px;
}

.note-body .redacted {
    background: var(--nhs-grey-1);
    color: var(--nhs-grey-1);
    padding: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.note-body .redacted:hover {
    color: var(--horror-red);
    background: rgba(139,0,0,0.2);
}

.note-body .horror-text {
    color: var(--horror-red);
    font-style: italic;
}

.note-body .system-text {
    font-family: var(--font-mono);
    color: var(--nhs-grey-3);
    font-size: 11px;
}

/* Blood Results Table */
.blood-results-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--nhs-white);
    border: 1px solid var(--nhs-grey-4);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.blood-results-table caption {
    text-align: left;
    padding: 10px 16px;
    background: var(--nhs-grey-5);
    font-weight: 600;
    font-size: 13px;
    color: var(--nhs-grey-2);
    border-bottom: 1px solid var(--nhs-grey-4);
}

.blood-results-table th {
    text-align: left;
    padding: 8px 12px;
    background: var(--nhs-grey-5);
    font-size: 11px;
    font-weight: 600;
    color: var(--nhs-grey-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--nhs-grey-4);
}

.blood-results-table td {
    padding: 8px 12px;
    font-size: 12px;
    border-bottom: 1px solid var(--nhs-grey-4);
    vertical-align: top;
}

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

.blood-results-table .result-abnormal {
    color: var(--nhs-red);
    font-weight: 700;
}

.blood-results-table .result-high {
    color: #e65100;
    font-weight: 600;
}

.blood-results-table .result-critical {
    color: var(--nhs-red);
    font-weight: 700;
    background: #ffebee;
    animation: criticalPulse 2s ease-in-out infinite;
}

@keyframes criticalPulse {
    0%, 100% { background: #ffebee; }
    50% { background: #ffcdd2; }
}

.blood-results-table .result-unknown {
    color: #7b1fa2;
    font-weight: 600;
    font-style: italic;
}

.pathology-comment {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 12px;
    color: #5d4037;
    font-style: italic;
}

.pathology-comment.alarming {
    background: #fce4ec;
    border-color: #ef9a9a;
    color: var(--horror-red);
}

/* Investigation Report */
.investigation-report {
    background: var(--nhs-white);
    border: 1px solid var(--nhs-grey-4);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.investigation-report .report-header {
    padding: 10px 16px;
    background: var(--nhs-grey-5);
    border-bottom: 1px solid var(--nhs-grey-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.investigation-report .report-type {
    font-weight: 600;
    font-size: 13px;
    color: var(--nhs-grey-2);
}

.investigation-report .report-date {
    font-size: 11px;
    color: var(--nhs-grey-3);
}

.investigation-report .report-body {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
}

.investigation-report .report-findings {
    background: var(--nhs-grey-5);
    border-left: 3px solid var(--nhs-blue);
    padding: 10px 14px;
    margin: 10px 0;
    font-size: 12px;
}

.investigation-report .report-findings.abnormal {
    border-left-color: var(--nhs-red);
    background: #fff5f5;
}

.investigation-report .report-findings.horror-findings {
    border-left-color: var(--horror-red);
    background: rgba(139,0,0,0.04);
    color: #4a0000;
}

/* Letter */
.letter-card {
    background: var(--nhs-white);
    border: 1px solid var(--nhs-grey-4);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.letter-card .letter-header {
    padding: 12px 16px;
    background: var(--nhs-grey-5);
    border-bottom: 1px solid var(--nhs-grey-4);
}

.letter-card .letter-from {
    font-weight: 600;
    font-size: 13px;
    color: var(--nhs-grey-2);
}

.letter-card .letter-dept {
    font-size: 11px;
    color: var(--nhs-grey-3);
    margin-top: 2px;
}

.letter-card .letter-date {
    font-size: 11px;
    color: var(--nhs-grey-3);
    margin-top: 4px;
}

.letter-card .letter-body {
    padding: 16px;
    font-size: 13px;
    line-height: 1.65;
}

.letter-card .letter-body p {
    margin-bottom: 10px;
}

.letter-card .letter-body p:last-child {
    margin-bottom: 0;
}

.letter-card .letter-signature {
    border-top: 1px solid var(--nhs-grey-4);
    padding: 12px 16px;
    font-size: 12px;
    color: var(--nhs-grey-3);
    font-style: italic;
}

.letter-card.horror-letter {
    border-color: rgba(139,0,0,0.3);
}

.letter-card.horror-letter .letter-header {
    background: rgba(139,0,0,0.05);
}

/* ============================================
   Horror / Atmospheric Effects
   ============================================ */
.glitch-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 500;
}

.glitch-overlay.active {
    animation: screenGlitch 0.15s ease-in-out;
}

@keyframes screenGlitch {
    0% {
        background: transparent;
        transform: translate(0);
    }
    20% {
        background: rgba(139,0,0,0.03);
        transform: translate(-2px, 1px);
    }
    40% {
        background: rgba(0,0,0,0.02);
        transform: translate(2px, -1px);
    }
    60% {
        background: rgba(139,0,0,0.04);
        transform: translate(-1px, 2px);
    }
    80% {
        background: transparent;
        transform: translate(1px, -1px);
    }
    100% {
        background: transparent;
        transform: translate(0);
    }
}

.glitch-overlay.static {
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.02) 0px,
        rgba(0,0,0,0.02) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: staticNoise 0.5s steps(10) infinite;
}

@keyframes staticNoise {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Corruption effect on text */
.corrupted {
    animation: textCorrupt 3s ease-in-out infinite;
}

@keyframes textCorrupt {
    0%, 95%, 100% { opacity: 1; transform: translate(0); filter: none; }
    96% { opacity: 0.8; transform: translate(-1px, 1px); filter: hue-rotate(90deg); }
    97% { opacity: 1; transform: translate(1px, -1px); filter: none; }
    98% { opacity: 0.9; transform: translate(-1px, 0); filter: hue-rotate(-90deg); }
}

/* Screen color shift during horror */
.ehr-interface.horror-mode {
    filter: saturate(0.8) brightness(0.97);
    transition: filter 30s ease-in;
}

.ehr-interface.deep-horror {
    filter: saturate(0.5) brightness(0.92) sepia(0.05);
    transition: filter 20s ease-in;
}

.ehr-interface.final-horror {
    filter: saturate(0.3) brightness(0.85) sepia(0.1);
    transition: filter 10s ease-in;
}

/* ============================================
   Final Overlay
   ============================================ */
.final-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 3s ease-in;
    pointer-events: none;
}

.final-overlay.active {
    background: rgba(0,0,0,0.85);
    pointer-events: auto;
}

.final-content {
    max-width: 600px;
    text-align: center;
    color: #cc0000;
    font-family: var(--font-mono);
    opacity: 0;
    transition: opacity 2s ease-in;
    padding: 20px;
}

.final-overlay.active .final-content {
    opacity: 1;
}

.final-content h2 {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #ff0000;
    animation: finalPulse 2s ease-in-out infinite;
}

@keyframes finalPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.final-content p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #aa0000;
}

.final-content .final-entry {
    text-align: left;
    background: rgba(139,0,0,0.1);
    border: 1px solid rgba(139,0,0,0.3);
    border-radius: 4px;
    padding: 16px;
    margin: 20px 0;
    font-size: 12px;
    line-height: 1.7;
}

.final-content .final-prompt {
    margin-top: 30px;
    font-size: 11px;
    color: #660000;
    cursor: pointer;
}

.final-content .final-prompt:hover {
    color: #ff0000;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--horror-red);
    animation: typing 2s steps(40) forwards, blinkCursor 0.75s step-end infinite;
}

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

@keyframes blinkCursor {
    50% { border-color: transparent; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nhs-grey-5);
}

::-webkit-scrollbar-thumb {
    background: var(--nhs-grey-4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nhs-grey-3);
}

/* Print-style for letters */
.letter-body .dear-line {
    margin-bottom: 14px;
}

.letter-body .re-line {
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--nhs-grey-2);
}

/* Hand-written note effect */
.handwritten {
    font-family: 'Segoe Script', 'Bradley Hand', cursive;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    background: #fffff0;
    border: 1px solid #ddd;
    padding: 16px;
    transform: rotate(-0.5deg);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

/* Section divider in notes */
.note-divider {
    border: none;
    border-top: 1px dashed var(--nhs-grey-4);
    margin: 12px 0;
}

/* Alert box within notes */
.clinical-alert {
    background: #fff3e0;
    border: 1px solid #ffcc02;
    border-left: 4px solid #ff9800;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 12px;
}

.clinical-alert.danger {
    background: #ffebee;
    border-color: #ef9a9a;
    border-left-color: var(--nhs-red);
    color: #b71c1c;
}

.clinical-alert.horror-alert {
    background: #1a0000;
    border-color: #4a0000;
    border-left-color: #ff0000;
    color: #ff4444;
    font-family: var(--font-mono);
}
