:root {
    /* Academic Branding - Integrated with Bootstrap 5.3 */
    --bs-primary: #002147; /* Oxford Blue */
    --bs-primary-rgb: 0, 33, 71;
    --bs-secondary: #cea052; /* Gold Accent */
    --bs-secondary-rgb: 206, 160, 82;
    
    --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: #1f2937;
}

/* Remove focus outline from headers (caused by Blazor FocusOnNavigate) */
h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
    outline: none !important;
}

[dir="rtl"], [dir="rtl"] body {
    font-family: 'Heebo', 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Primary Color Overrides for Bootstrap Components */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* RTL Icon Adjustments - Standard Bootstrap Utility Extensions */
[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

/* Quill Editor Fixes (Infrastructure) */
.ql-snow .ql-picker.ql-header { width: 75px !important; }
.ql-snow .ql-picker.ql-header .ql-picker-label::before,
.ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Text' !important; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before { content: 'H1' !important; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before { content: 'H2' !important; }

/* Blazor Error UI (Standard) */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
