/* ═══════════════════════════════════════════════════════════════
   QUESTO HUB – MULTI-DRUG INTERACTION CHECKER (DRAMA THEME)
   Consistent with Home, Drug Index, and Disease Vault:
   Inter font, Dark Drama Palette (#0F1115, #1C1F26, #D4AF37),
   Floating Shadows, Zero Button & Number Shadows
   ═══════════════════════════════════════════════════════════════ */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    -webkit-tap-highlight-color: transparent !important;
}

:root {
    --dh-bg: #0F1115;
    --dh-surface: #1C1F26;
    --dh-surface-hover: #222630;
    --dh-surface-solid: #1C1F26;
    --dh-surface-dark: #14171E;
    --dh-card-bg: #1C1F26;
    --dh-border: #252830;
    --dh-border-hover: rgba(212, 175, 55, 0.45);
    --dh-text: #FFFFFF;
    --dh-text-muted: #B0B5BE;
    --dh-text-dim: #8A8F98;
    --dh-accent: #D4AF37;
    --dh-accent-hover: #E6C555;
    --dh-accent-glow: rgba(212, 175, 55, 0.12);
    --dh-gold: #D4AF37;
    --dh-gold-glow: rgba(212, 175, 55, 0.14);
    --dh-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F0D060 50%, #D4AF37 100%);
    --dh-teal: #14B8A6;
    --dh-teal-glow: rgba(20, 184, 166, 0.12);
    --dh-success: #4ADE80;
    --dh-danger: #FF4D6A;
    --dh-warning: #F59E0B;
    --dh-info: #38BDF8;
    --dh-radius: 16px;
    --dh-radius-md: 12px;
    --dh-radius-sm: 10px;
    --dh-radius-xs: 6px;
    --dh-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Drama Elevation Floating Shadows */
    --dh-shadow-card: 0 16px 38px -4px rgba(0, 0, 0, 0.72), 0 6px 16px -2px rgba(0, 0, 0, 0.50);
    --dh-shadow-card-hover: 0 24px 48px -4px rgba(0, 0, 0, 0.82), 0 8px 20px -2px rgba(0, 0, 0, 0.58);
    --dh-shadow-sm: 0 4px 14px -2px rgba(0, 0, 0, 0.6);

    /* Legacy compatibility mappings for JS / sub-elements */
    --card-bg: #1C1F26;
    --border-soft: #252830;
    --text-light: #FFFFFF;
    --text-muted: #B0B5BE;
    --text-dim: #8A8F98;
    --gold: #D4AF37;
    --border-gold: rgba(212, 175, 55, 0.35);
    --gold-glow: rgba(212, 175, 55, 0.15);
    --teal: #14B8A6;
    --teal-glow: rgba(20, 184, 166, 0.15);
}

/* Global Canvas Background Override */
html, body {
    background-color: #0F1115 !important;
    background: #0F1115 !important;
    background-image: none !important;
    color: var(--dh-text);
}

/* Custom Faint Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* ═══════════════════════════════════════
   PAGE LAYOUT & CONTAINER
   ═══════════════════════════════════════ */
.interactions-page {
    width: 100%;
    max-width: 1240px;
    margin: 90px auto 60px;
    padding: 0 24px;
    min-height: 70vh;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.drugs-hero {
    background: #1C1F26 !important;
    border-radius: 20px !important;
    padding: 38px 28px 32px !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid #252830 !important;
    border-top: 3px solid var(--dh-accent) !important;
    box-shadow: var(--dh-shadow-card) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.drugs-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 200%;
    background: radial-gradient(ellipse at center,
            rgba(212, 175, 55, 0.05) 0%,
            transparent 60%);
    pointer-events: none;
}

.drugs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.drugs-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(212, 175, 55, 0.08) !important;
    color: var(--dh-accent) !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    box-shadow: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}

.drugs-hero h1 {
    font-size: clamp(1.45rem, 2.6vw, 2.2rem) !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 12px !important;
    text-shadow: none !important;
}

.drugs-hero h1 span {
    background: var(--dh-gold-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

.drugs-hero-desc {
    font-size: 0.92rem;
    color: var(--dh-text-muted);
    line-height: 1.55;
    max-width: 620px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   CLINICAL QUICK NAVIGATION DOCK
   ═══════════════════════════════════════ */
.clinical-nav-dock {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #14171E !important;
    border: 1px solid #252830 !important;
    border-radius: 14px !important;
    padding: 8px 12px !important;
    margin-bottom: 28px !important;
    box-shadow: var(--dh-shadow-sm) !important;
    overflow: hidden;
}

.dock-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 10px;
    color: var(--dh-accent) !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap !important;
    flex-shrink: 0;
    transition: var(--dh-transition);
    box-shadow: none !important;
    text-shadow: none !important;
}

.dock-back-btn:hover {
    background: rgba(212, 175, 55, 0.16) !important;
    border-color: var(--dh-accent) !important;
    color: #FFFFFF !important;
    transform: translateX(-2px);
}

.dock-back-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.dock-back-btn:hover i {
    transform: translateX(-2px);
}

.dock-divider {
    width: 1px;
    height: 22px;
    background: #252830;
    flex-shrink: 0;
}

.dock-links-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}

.dock-links-scroll::-webkit-scrollbar {
    display: none;
}

.dock-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--dh-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap !important;
    flex-shrink: 0;
    transition: var(--dh-transition);
    box-shadow: none !important;
    text-shadow: none !important;
}

.dock-pill i {
    font-size: 0.82rem;
    color: var(--dh-text-dim);
    transition: color 0.2s ease;
}

.dock-pill:hover {
    background: #1C1F26;
    border-color: rgba(212, 175, 55, 0.3);
    color: #FFFFFF;
}

.dock-pill:hover i {
    color: var(--dh-accent);
}

.dock-pill.active {
    background: rgba(212, 175, 55, 0.12) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    color: var(--dh-accent) !important;
    font-weight: 700;
    cursor: default;
}

.dock-pill.active i {
    color: var(--dh-accent) !important;
}

.dock-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dh-accent);
    display: inline-block;
}

/* ═══════════════════════════════════════
   INTERACTIONS MAIN LAYOUT
   ═══════════════════════════════════════ */
.interactions-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ═══════════════════════════════════════
   GLASS CARDS (DRAMA SOLID CARDS)
   ═══════════════════════════════════════ */
.glass-card {
    background: #1C1F26 !important;
    border: 1px solid #252830 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--dh-shadow-card) !important;
}

.glass-card.search-card {
    overflow: visible !important;
    z-index: 20;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 14px;
    background: linear-gradient(90deg, var(--dh-accent) 0%, rgba(212, 175, 55, 0.2) 60%, transparent 100%);
    opacity: 0.85;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    clip-path: inset(0 0 11px 0 round 16px 16px 0 0);
    -webkit-clip-path: inset(0 0 11px 0 round 16px 16px 0 0);
    pointer-events: none;
}

.search-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-title i {
    color: var(--dh-accent);
}

.search-wrapper {
    position: relative;
}

.search-input-group {
    position: relative;
    width: 100%;
}

.search-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dh-text-dim);
    font-size: 0.95rem;
}

.search-field {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: #14171E !important;
    border: 1px solid #252830 !important;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.92rem;
    outline: none;
    transition: var(--dh-transition);
    box-shadow: none !important;
}

.search-field:focus {
    border-color: var(--dh-accent) !important;
}

.search-field::placeholder {
    color: var(--dh-text-dim);
}

/* Autocomplete List */
.autocomplete-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #14171E !important;
    border: 1px solid #252830 !important;
    border-radius: 12px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--dh-shadow-card) !important;
    display: none;
}

.autocomplete-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--dh-transition);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

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

.autocomplete-item:hover {
    background: rgba(212, 175, 55, 0.08);
}

.autocomplete-name {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
}

.autocomplete-synonyms {
    color: var(--dh-accent);
    font-style: italic;
    font-size: 0.82rem;
}

.autocomplete-meta {
    font-size: 0.75rem;
    color: var(--dh-text-dim);
    display: flex;
    justify-content: space-between;
}

/* ═══════════════════════════════════════
   BUCKET LIST CARD
   ═══════════════════════════════════════ */
.bucket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bucket-count-badge {
    background: rgba(212, 175, 55, 0.12) !important;
    color: var(--dh-accent) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.bucket-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: -4px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bucket-sub-text {
    font-size: 0.72rem;
    color: var(--dh-text-dim);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.clear-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #252830;
    color: var(--dh-text-dim);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dh-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap !important;
    flex-shrink: 0;
    box-shadow: none !important;
    text-shadow: none !important;
}

.clear-btn:hover {
    color: var(--dh-danger);
    background: rgba(255, 77, 106, 0.1);
    border-color: rgba(255, 77, 106, 0.3);
}

.bucket-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.bucket-chip {
    background: #14171E !important;
    border: 1px solid #252830 !important;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--dh-transition);
}

.bucket-chip:hover {
    background: #191C24 !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
}

.chip-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chip-name {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.88rem;
}

.chip-class {
    font-size: 0.72rem;
    color: var(--dh-text-dim);
}

.chip-remove {
    background: transparent;
    border: none;
    color: var(--dh-text-dim);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: var(--dh-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.chip-remove:hover {
    color: var(--dh-danger);
    background: rgba(255, 77, 106, 0.1);
}

.bucket-empty-state {
    text-align: center;
    padding: 36px 12px;
    color: var(--dh-text-dim);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bucket-empty-state i {
    font-size: 2rem;
    opacity: 0.35;
    color: var(--dh-text-dim);
}

/* ═══════════════════════════════════════
   MAP VISUALIZER CARD & CANVAS
   ═══════════════════════════════════════ */
.glass-card.map-card {
    padding: 0 !important;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-header {
    padding: 14px 18px;
    border-bottom: 1px solid #252830;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #14171E;
    gap: 10px;
}

.map-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.map-title i {
    color: var(--dh-accent);
    font-size: 0.95rem;
}

.map-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.map-btn {
    background: #1C1F26;
    border: 1px solid #252830;
    color: var(--dh-text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap !important;
    flex-shrink: 0;
    transition: var(--dh-transition);
    box-shadow: none !important;
    text-shadow: none !important;
}

.map-btn:hover {
    background: #222630;
    border-color: rgba(212, 175, 55, 0.4);
    color: #FFFFFF;
}

.map-btn i {
    color: var(--dh-accent);
    font-size: 0.8rem;
}

.canvas-container {
    flex: 1;
    position: relative;
    background: #0B0D12;
    overflow: hidden;
    min-height: 420px;
}

#interactionsCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#interactionsCanvas:active {
    cursor: grabbing;
}

/* Canvas Legend Overlay */
.map-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(20, 23, 30, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid #252830;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    z-index: 10;
    box-shadow: var(--dh-shadow-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: var(--dh-text-muted);
    font-weight: 600;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: none !important;
}

.dot-contra { background: #FF4D6A; }
.dot-major { background: #F59E0B; }
.dot-mod { background: #EAB308; }
.dot-safe { background: #14B8A6; }

/* ═══════════════════════════════════════
   REPORTS SECTION & INTERACTION CARDS
   ═══════════════════════════════════════ */
.report-section {
    margin-top: 32px;
}

.report-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #252830;
    padding-bottom: 16px;
}

.report-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.report-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -0.01em;
}

.report-title i {
    color: var(--dh-accent);
    font-size: 1.05rem;
}

.export-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 15px;
    background: rgba(212, 175, 55, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    color: var(--dh-accent) !important;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap !important;
    flex-shrink: 0;
    transition: var(--dh-transition);
    box-shadow: none !important;
    text-shadow: none !important;
}

.export-report-btn:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    border-color: var(--dh-accent) !important;
    transform: translateY(-1px);
}

.report-summary-counts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: none !important;
    text-shadow: none !important;
}

.pill-contra {
    background: rgba(255, 77, 106, 0.14) !important;
    color: #FF4D6A !important;
    border: 1px solid rgba(255, 77, 106, 0.3) !important;
}

.pill-major {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #F59E0B !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.pill-mod {
    background: rgba(234, 179, 8, 0.12) !important;
    color: #EAB308 !important;
    border: 1px solid rgba(234, 179, 8, 0.25) !important;
}

.pill-safe {
    background: rgba(20, 184, 166, 0.14) !important;
    color: #14B8A6 !important;
    border: 1px solid rgba(20, 184, 166, 0.3) !important;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.report-card {
    background: #1C1F26 !important;
    border: 1px solid #252830 !important;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--dh-transition);
    box-shadow: var(--dh-shadow-card) !important;
}

.report-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.35) !important;
}

.report-card.border-contra, .report-card.border-contraindicated {
    border-left: 4px solid #FF4D6A !important;
    background: rgba(255, 77, 106, 0.06) !important;
    border-color: rgba(255, 77, 106, 0.25) !important;
}

.report-card.border-major {
    border-left: 4px solid #F59E0B !important;
    background: rgba(245, 158, 11, 0.06) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

.report-card.border-mod, .report-card.border-moderate {
    border-left: 4px solid #EAB308 !important;
    background: rgba(234, 179, 8, 0.05) !important;
    border-color: rgba(234, 179, 8, 0.22) !important;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.card-pair {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
}

.severity-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none !important;
    text-shadow: none !important;
}

.badge-contra, .badge-contraindicated { background: #FF4D6A !important; color: #FFFFFF !important; }
.badge-major { background: #F59E0B !important; color: #FFFFFF !important; }
.badge-mod, .badge-moderate { background: #EAB308 !important; color: #0F1115 !important; }

.card-mechanism {
    font-size: 0.85rem;
    color: var(--dh-text-muted);
    line-height: 1.5;
    background: #14171E;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #252830;
}

.card-recommendation {
    font-size: 0.82rem;
    color: var(--dh-accent);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.card-recommendation i {
    margin-top: 2px;
    font-size: 0.88rem;
    color: var(--dh-accent);
}

.report-empty-state {
    grid-column: 1 / -1;
    background: #14171E !important;
    border: 1px dashed #252830 !important;
    border-radius: 14px;
    padding: 48px 20px;
    text-align: center;
    color: var(--dh-text-dim);
}

.report-empty-state i {
    font-size: 2.4rem;
    margin-bottom: 12px;
    opacity: 0.35;
    color: var(--dh-text-dim);
}

.report-safe-state {
    grid-column: 1 / -1;
    background: rgba(20, 184, 166, 0.05) !important;
    border: 1px solid rgba(20, 184, 166, 0.2) !important;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    color: var(--dh-teal);
}

.report-safe-state i {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: var(--dh-teal);
    text-shadow: none !important;
}

.report-safe-state h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #FFFFFF;
}

.report-safe-state p {
    color: var(--dh-text-muted);
    font-size: 0.88rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   REFERENCE SOP DRAWER
   ═══════════════════════════════════════ */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 460px;
    height: 100%;
    background: #14171E !important;
    border-left: 1px solid #252830;
    z-index: 1001;
    box-shadow: var(--dh-shadow-card) !important;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid #252830;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1C1F26;
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-title i {
    color: var(--dh-accent);
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--dh-text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--dh-transition);
    box-shadow: none !important;
}

.drawer-close:hover {
    color: #FFFFFF;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.manual-section {
    margin-bottom: 20px;
    background: #1C1F26;
    border: 1px solid #252830;
    border-radius: 12px;
    padding: 18px;
}

.manual-section h4 {
    color: var(--dh-accent);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.manual-section p {
    color: var(--dh-text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 8px;
}

.manual-section ul {
    margin-left: 20px;
    margin-bottom: 8px;
    color: var(--dh-text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.manual-section strong {
    color: #FFFFFF;
}

/* ═══════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════ */
@media (max-width: 992px) {
    .interactions-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .glass-card.map-card {
        min-height: 420px;
    }
}

@media (max-width: 576px) {
    .interactions-page {
        margin-top: 75px;
        padding: 0 16px;
    }
    .drugs-hero {
        padding: 24px 16px 20px !important;
        border-radius: 16px !important;
        margin-bottom: 18px !important;
    }
    .drugs-badge {
        font-size: 0.68rem;
        padding: 4px 12px;
        margin-bottom: 10px;
    }
    .drugs-hero h1 {
        font-size: 1.35rem !important;
        line-height: 1.28 !important;
        margin-bottom: 8px !important;
    }
    .drugs-hero-desc {
        font-size: 0.82rem;
        line-height: 1.48;
    }
    .clinical-nav-dock {
        padding: 6px 8px !important;
        gap: 8px;
        margin-bottom: 20px !important;
    }
    .dock-back-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    .dock-pill {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .glass-card {
        padding: 18px 16px !important;
        border-radius: 14px !important;
    }
    .map-header {
        padding: 11px 13px !important;
        gap: 8px !important;
    }
    .map-title {
        font-size: 0.85rem !important;
        gap: 6px !important;
    }
    .map-btn {
        padding: 5px 9px !important;
        font-size: 0.72rem !important;
        gap: 5px !important;
    }
    .report-header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .report-title {
        font-size: 0.95rem !important;
        gap: 7px !important;
    }
    .export-report-btn {
        width: auto !important;
        padding: 5px 12px !important;
        font-size: 0.74rem !important;
    }
    .drawer {
        width: 100%;
        right: -100%;
    }
    .report-grid {
        grid-template-columns: 1fr;
    }
}