:root {
    --zim-green: #2d6a4f;
    --zim-gold: #b08d57;
    --zim-dark: #23272b;
    --zim-light: #f8f9fa;
}

html {
    font-size: 17px;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: var(--zim-light);
}

/* Navbar */
.navbar {
    background-color: white !important;
    border-bottom: 2px solid var(--zim-green);
}

.navbar-brand {
    color: var(--zim-green) !important;
    font-weight: 600;
    letter-spacing: 0.8px;
}

/* Footer */
footer {
    background-color: white;
    color: var(--zim-green);
    border-top: 1px solid #dee2e6;
}

/* Card headers */
.card-header {
    background-color: var(--zim-green) !important;
    color: white !important;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Output card headers — warm contrast */
.card-header-output {
    background-color: #c45a2d !important;
    color: white !important;
}

/* DataTable font */
.dash-table-container .dash-spreadsheet-container,
.dash-table-container .dash-spreadsheet-container .dash-header,
.dash-table-container .dash-spreadsheet-container .dash-cell,
.dash-table-container .dash-spreadsheet-container .dash-cell div {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    font-size: 0.85rem;
}

/* Chat assistant bubble: tighten markdown paragraphs and inline elements */
.chat-assistant-bubble p { margin: 0 0 0.4rem 0; }
.chat-assistant-bubble p:last-child { margin-bottom: 0.4rem; }
.chat-assistant-bubble ul, .chat-assistant-bubble ol { margin: 0.2rem 0 0.4rem 1.25rem; padding: 0; }
.chat-assistant-bubble li { margin-bottom: 0.15rem; }
.chat-assistant-bubble pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 6px 8px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0.3rem 0;
    font-size: 0.8rem;
}
.chat-assistant-bubble code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.85em;
}
.chat-assistant-bubble :not(pre) > code {
    background: rgba(0,0,0,0.06);
    padding: 1px 4px;
    border-radius: 3px;
}
.chat-assistant-bubble h1, .chat-assistant-bubble h2, .chat-assistant-bubble h3,
.chat-assistant-bubble h4, .chat-assistant-bubble h5, .chat-assistant-bubble h6 {
    margin: 0.4rem 0 0.2rem 0;
    font-size: 1rem;
    font-weight: 600;
}
.chat-assistant-bubble blockquote {
    border-left: 3px solid #aaa;
    padding-left: 8px;
    margin: 0.3rem 0;
    color: #555;
}
.chat-assistant-bubble table {
    border-collapse: collapse;
    margin: 0.3rem 0;
    font-size: 0.85rem;
}
.chat-assistant-bubble th, .chat-assistant-bubble td {
    border: 1px solid #ccc;
    padding: 2px 6px;
}
