/* Batur Global Macro Dashboard — Sample 1: Obsidian Hairline Institutional Theme */

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: #09090b !important;
    color: #f4f4f5;
    -webkit-font-smoothing: antialiased;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Institutional Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #09090b;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Subtle Alert Animation */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.92; }
}

.alert-pulse {
    animation: pulse-subtle 4s infinite ease-in-out;
}

/* Transparent Plotly SVG Background */
.js-plotly-plot .plotly .main-svg {
    background: transparent !important;
}

/* Table Row Hover */
#macro-table-body tr {
    transition: background-color 0.12s ease;
    border-bottom: 1px solid #18181c;
}

#macro-table-body tr:hover {
    background-color: rgba(39, 39, 42, 0.55);
}

/* Active Category Filter Tab (Sample 1 Zinc/Emerald Style) */
.cat-tab.active {
    background-color: #27272a !important;
    color: #f4f4f5 !important;
    border-color: #3f3f46 !important;
}

/* ==========================================================================
   Markdown Rendering (Daily Briefing & Executive Synthesis)
   ========================================================================== */
.markdown-body {
    color: #d4d4d8;
    font-size: 0.85rem;
    line-height: 1.75;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: #f4f4f5;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.markdown-body h1 {
    font-size: 1.15rem;
    color: #f4f4f5;
    border-bottom: 1px solid #1f1f23;
    padding-bottom: 0.5rem;
}

.markdown-body h2 {
    font-size: 1.02rem;
    color: #10b981;
    border-bottom: 1px solid #1f1f23;
    padding-bottom: 0.35rem;
}

.markdown-body h3 {
    font-size: 0.92rem;
    color: #e4e4e7;
}

.markdown-body p {
    margin-bottom: 0.85rem;
}

.markdown-body strong {
    color: #ffffff;
    font-weight: 600;
}

.markdown-body hr {
    border: 0;
    border-top: 1px solid #1f1f23;
    margin: 1.5rem 0;
}

.markdown-body ul,
.markdown-body ol {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.markdown-body ul {
    list-style-type: disc;
}

.markdown-body ol {
    list-style-type: decimal;
}

.markdown-body li {
    margin-bottom: 0.4rem;
}

.markdown-body blockquote {
    border-left: 2px solid #10b981;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #a1a1aa;
    font-style: italic;
    background: #101014;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0 2px 2px 0;
}

.markdown-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 0.15rem 0.4rem;
    background-color: #121216;
    border: 1px solid #27272a;
    border-radius: 2px;
    color: #10b981;
}

.markdown-body pre {
    background-color: #09090b !important;
    border: 1px solid #1f1f23;
    border-radius: 2px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-body pre code {
    background-color: transparent !important;
    border: none;
    padding: 0;
    color: #e4e4e7;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Institutional Data Table in Markdown */
.markdown-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.25rem 0;
    border-radius: 2px;
    border: 1px solid #1f1f23;
    background-color: #0c0c0f;
}

.markdown-body table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    text-align: left;
}

.markdown-body table th {
    background-color: #101014;
    color: #a1a1aa;
    font-weight: 600;
    padding: 9px 14px;
    border-bottom: 1px solid #1f1f23;
    border-right: 1px solid #1f1f23;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.markdown-body table th:last-child {
    border-right: none;
}

.markdown-body table td {
    padding: 8px 14px;
    border-bottom: 1px solid #18181c;
    border-right: 1px solid #18181c;
    color: #e4e4e7;
    line-height: 1.45;
}

.markdown-body table td:last-child {
    border-right: none;
}

.markdown-body table tr:last-child td {
    border-bottom: none;
}

.markdown-body table tr:nth-child(even) td {
    background-color: #09090b;
}

.markdown-body table tr:hover td {
    background-color: #18181b;
}
