/* ═══════════════════════════════════════════
   ThreatLens - Siber Tehdit İstihbaratı
   Terminal-inspired cyber aesthetic
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* ── Dark Theme (Default) ── */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #222838;
    --bg-input: #0d1117;
    --border-color: #1e293b;
    --border-glow: #22d3ee33;

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-cyan: #22d3ee;
    --accent-green: #22c55e;
    --accent-yellow: #eab308;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;

    --safe-bg: #22c55e15;
    --safe-border: #22c55e40;
    --suspicious-bg: #eab30815;
    --suspicious-border: #eab30840;
    --malicious-bg: #ef444415;
    --malicious-border: #ef444440;

    --font-mono: 'IBM Plex Mono', monospace;
    --font-sans: 'IBM Plex Sans', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.1);
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f8fafc;
    --border-color: #e2e8f0;
    --border-glow: #0891b233;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-cyan: #0891b2;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(8, 145, 178, 0.08);
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Scanline overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

a { color: var(--accent-cyan); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ── Navigation ── */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    letter-spacing: -0.02em;
}

.nav-brand .brand-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-cyan);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--bg-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-cyan);
    background: var(--accent-cyan)10;
    opacity: 1;
}

/* ──── Theme Toggle Fix ──── */
.theme-toggle {
    position: relative;
    z-index: 50;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: var(--text);
    transition: all 0.2s;
}
.theme-toggle:hover {
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .theme-toggle {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        top: auto;
        z-index: 999;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
}

/* ── Layout ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* ── Hero / Search Section ── */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.hero-title .accent { color: var(--accent-cyan); }

.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
}

/* ── Search Bar ── */
.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    padding: 1rem 2rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: opacity 0.2s;
}

.search-bar button:hover { opacity: 0.9; }

.search-hint {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.search-hint code {
    background: var(--bg-card);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin: 0 0.1rem;
}

/* ── Stats Bar ── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.safe { color: var(--accent-green); }
.stat-value.suspicious { color: var(--accent-yellow); }
.stat-value.malicious { color: var(--accent-red); }

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
    font-family: var(--font-mono);
}

/* ── Recent Queries ── */
.section-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '>';
    color: var(--accent-cyan);
}

.query-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.query-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.query-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan)40;
    opacity: 1;
}

.ioc-type-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--accent-cyan)15;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    font-weight: 600;
    min-width: 55px;
    text-align: center;
}

.query-value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.query-score {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.score-safe { color: var(--accent-green); }
.score-suspicious { color: var(--accent-yellow); }
.score-malicious { color: var(--accent-red); }

.query-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    min-width: 80px;
    text-align: right;
}

/* ── Result Page ── */
.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.result-ioc {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 600;
    word-break: break-all;
}

.score-ring {
    width: 120px;
    height: 120px;
    position: relative;
    flex-shrink: 0;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring .ring-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.score-ring .ring-progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.score-ring .score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

.score-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ── Info Cards ── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
}

.info-card-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.info-row:last-child { border-bottom: none; }

.info-key {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.info-value {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

/* ── Breakdown ── */
.breakdown-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.breakdown-source {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
}

.breakdown-score {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
}

.breakdown-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.breakdown-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.breakdown-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ── Tags ── */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
}

.tag.active {
    border-color: currentColor;
}

.tag:hover {
    opacity: 0.8;
}

/* ── Notes ── */
.note-item {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.note-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.note-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.note-form textarea:focus {
    border-color: var(--accent-cyan);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
}

.btn:hover { border-color: var(--accent-cyan); opacity: 1; }

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.btn-primary:hover { opacity: 0.9; color: var(--bg-primary); }

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

/* ── History filters ── */
.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    opacity: 1;
}

.filter-search {
    flex: 1;
    min-width: 200px;
    padding: 0.4rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
}

.filter-search:focus { border-color: var(--accent-cyan); }

/* ── Messages ── */
.messages {
    max-width: 700px;
    margin: 0 auto 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.message.error {
    background: var(--malicious-bg);
    border: 1px solid var(--malicious-border);
    color: var(--accent-red);
}

.message.success {
    background: var(--safe-bg);
    border: 1px solid var(--safe-border);
    color: var(--accent-green);
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .container { padding: 1rem; }
    .hero { padding: 2rem 0 1.5rem; }
    .hero-title { font-size: 1.5rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .result-header { flex-direction: column; align-items: center; text-align: center; }
    .nav-links a { padding: 0.5rem 0.5rem; font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .search-bar { flex-direction: column; }
    .search-bar button { padding: 0.75rem; }
}

/* ──── Loading Spinner ──── */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
}
.loading-overlay.active {
    display: flex;
}
.spinner {
    width: 50px; height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ──── Severity Badges ──── */
.severity-safe { color: #00b894; }
.severity-suspicious { color: #fdcb6e; }
.severity-malicious { color: #e74c3c; }

/* ──── PDF Button ──── */
.btn-pdf {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: all 0.2s;
}
.btn-pdf:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ──── Bulk Results Table ──── */
.bulk-progress {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ──── Empty State ──── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ──── Toast Messages Improvement ──── */
.messages {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}
.messages .message {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    animation: slideIn 0.3s ease;
    cursor: pointer;
}
.messages .message.success {
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid #00b894;
    color: #00b894;
}
.messages .message.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}
.messages .message.warning {
    background: rgba(253, 203, 110, 0.15);
    border: 1px solid #fdcb6e;
    color: #fdcb6e;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ──── Leaflet Map ──── */
.map-container {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.map-container .section-title {
    margin-bottom: 0.5rem;
}
#ioc-map {
    height: 350px;
    width: 100%;
    border-radius: 0 0 10px 10px;
    z-index: 1;
}

/* ──── Responsive Improvements ──── */
@media (max-width: 768px) {

    body {
        padding-top: 60px;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr !important;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .score-ring {
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 1.4rem !important;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    .query-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .query-value {
        width: 100%;
        word-break: break-all;
    }
    
    /* Karşılaştırma sayfası tek kolon */
    .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Navbar responsive */
    .navbar ul {
        gap: 0.5rem;
    }
    
    .navbar a {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Harita yüksekliği */
    #ioc-map, #dashboard-map {
        height: 250px !important;
    }
    
    /* Butonlar wrap */
    div[style*="display:flex"][style*="gap:1rem"] {
        flex-wrap: wrap;
    }
    
    /* Breakdown detay */
    .breakdown-details {
        font-size: 0.75rem;
        word-break: break-word;
    }
    
    /* Footer */
    footer div[style*="display:flex"] {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 110px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.3rem 0.5rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }
    
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.15rem;
    }
    
    .navbar a, .navbar span {
        font-size: 0.55rem;
        padding: 0.15rem 0.3rem;
    }

    .navbar li[style*="border-left"] {
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .navbar .logo {
        font-size: 0.8rem;
    }
    
    .stats-bar {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .hero h1 {
        font-size: 1.2rem !important;
    }
    
    .search-form div {
        flex-direction: column !important;
    }
    
    .search-form input,
    .search-form button {
        width: 100% !important;
    }
    
    .score-ring svg {
        width: 100px;
        height: 100px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}

/* ──── Print Styles ──── */
@media print {
    .navbar, footer, .btn, .note-form, .loading-overlay, .messages {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .info-card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}