/* Global Styling */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Header/Navbar */
.navbar {
    background-color: #0f172a; /* Slate 900 */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar {
    background-color: #0f172a;
    border-right: 1px solid rgba(255,255,255,0.05);
}

/* Buttons */
.btn-primary {
    background-color: #F28C3D !important; /* Brand Orange */
    border-color: #F28C3D !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #e07b2c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 140, 61, 0.3);
}

/* Callouts */
.callout-note {
    border-left-color: #F28C3D !important;
}

.callout-tip {
    border-left-color: #2e7bcf !important;
}

/* Code Blocks & WebR Output - HIGH CONTRAST FIX */
pre.sourceCode {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background-color: #1e293b !important; /* Slate 800 */
}

/* Ensure stdout/stderr text is visible on dark theme */
.qwebr-output-code-stdout, .qwebr-output-code-stderr, pre {
    color: #f8f8f2 !important; /* Off-white for readability */
    background-color: #1e293b !important; /* Ensure background matches */
}

/* Flextable Backgrounds for Dark Mode */
.tabwid, .tabwid table {
    background-color: #ffffff !important; /* Force tables to be white so black text works */
    color: #000000 !important;
    border-radius: 4px;
    padding: 10px;
}

/* Typography for Manuscript Preview */
.manuscript-preview {
    background: white;
    color: black;
    padding: 40px;
    font-family: 'Times New Roman', Times, serif;
    border: 1px solid #ccc;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    margin: 20px 0;
}

/* Hide Hamburger Menu */
.navbar-toggler {
    display: none !important;
}

/* Enable Horizontal Code Scrolling */
code {
    white-space: pre !important; 
}

/* Hide Navbar Brand/Title */
.navbar-brand-container {
    display: none !important;
}
