/* Novellus Loan Management System - Custom Styles */

/* Font-face declaration for locally hosted Brother 1816 Light */
@font-face {
    font-family: "Brother 1816";
    src: url("/fonts/brother-1816-light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Global Styles - Novellus Theme */
:root {
    --primary-color: var(--novellus-gold, #AD965F);
    --secondary-color: var(--novellus-navy, #1E2B3A);
    --success-color: #1f9d6f;
    --danger-color: #dc3545;
    --warning-color: var(--novellus-gold-lightest, #F2E185);
    --info-color: var(--novellus-navy-light, #2D3A49);
    --light-color: var(--novellus-background, #FAFBFC);
    --dark-color: var(--novellus-navy, #1E2B3A);
    --font-family: 'Source Sans 3', 'Brother 1816', Arial, sans-serif;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Navigation - Novellus Theme */
.novellus-header .navbar {
    background: linear-gradient(135deg, var(--novellus-navy-dark, #0F1923) 0%, var(--novellus-navy, #1E2B3A) 100%) !important;
    border-bottom: 2px solid var(--novellus-gold, #AD965F);
    min-height: 64px;
}

.novellus-header .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
}

.novellus-header .nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
    color: rgba(255, 255, 255, 0.85) !important;
}

.novellus-header .nav-link:hover,
.novellus-header .nav-link:focus {
    color: var(--novellus-gold, #AD965F) !important;
}

.novellus-header .nav-link.active {
    color: var(--novellus-gold, #AD965F) !important;
}

.novellus-header .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.novellus-header .btn-outline-light:hover,
.novellus-header .btn-outline-light:focus {
    background-color: #fff;
    color: var(--novellus-navy, #1E2B3A);
}

/* Sidebar navigation */
#sidebarMenu {
    --bs-offcanvas-width: 300px; /* 25% reduction from default width */
}

#sidebarMenu .nav-link {
    font-size: 1.1rem; /* increase font size of list items */
}

#sidebarMenu .nav-link:hover,
#sidebarMenu .nav-link:focus,
#sidebarMenu .nav-link.active {
    background-color: var(--primary-color);
    color: #fff !important;
}

#sidebarMenu .nav-link:hover i,
#sidebarMenu .nav-link:focus i,
#sidebarMenu .nav-link.active i {
    color: #fff !important;
}

/* Cards - Updated for Novellus Theme (moved to novellus-theme.css) */

/* Buttons - Novellus Theme */
.btn {
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    font-family: var(--font-family);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn:hover,
.btn:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #AD965F 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(184, 134, 11, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #AD965F 0%, #5D4409 100%);
    border-color: #AD965F;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(184, 134, 11, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #0F1923;
    border-color: #0F1923;
    color: white;
}

.btn-outline-primary {
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
    background-color: white;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Landing hero banner */
.novellus-landing-hero {
    background-image: linear-gradient(135deg, rgba(14, 24, 36, 0.8), rgba(173, 150, 95, 0.75)), url("../image/Novellus-BG.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 0 0 1.5rem 1.5rem;
}

.novellus-landing-hero .btn {
    min-width: 240px;
}

.btn-check:focus + .btn-outline-primary,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(173, 150, 95, 0.35) !important;
    outline: none;
}

.btn-check:focus + .btn-outline-secondary,
.btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 43, 58, 0.35) !important;
    outline: none;
}

.btn-outline-secondary {
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
    background-color: white;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: white;
}

main {
    background: linear-gradient(180deg, rgba(173, 150, 95, 0.06) 0%, rgba(30, 43, 58, 0.04) 100%);
}

.main-content,
main .container {
    padding-bottom: 3rem;
}

.card.border-dashed,
.border-dashed {
    border: 2px dashed var(--novellus-border, #E0E6EC) !important;
    background-color: rgba(255, 255, 255, 0.65);
}

.novellus-dashboard-hero {
    background: linear-gradient(135deg, rgba(14, 24, 36, 0.85), rgba(13, 44, 76, 0.6));
}

.novellus-dashboard-hero .card {
    border: none;
}

.novellus-dashboard-hero .btn {
    min-width: 200px;
}

.card-header i {
    color: var(--novellus-gold, #AD965F);
}

.novellus-contact-card .card-header {
    background: linear-gradient(135deg, var(--novellus-navy-light, #2D3A49) 0%, var(--novellus-navy, #1E2B3A) 100%);
    color: #fff;
    border-bottom: 2px solid var(--novellus-gold, #AD965F);
}

.novellus-contact-card .btn {
    font-weight: 600;
}

.novellus-contact-card {
    margin-bottom: 2rem;
}

.table thead {
    background-color: var(--novellus-navy-lightest, #E8EBF0);
}

.table-hover tbody tr:hover {
    background-color: var(--novellus-hover, #F5F7FA);
}

pre {
    font-family: "Source Code Pro", Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* Override any remaining blue elements */
.text-info {
    color: var(--secondary-color) !important;
}

.btn-info {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}

.btn-info:hover {
    background-color: var(--dark-color) !important;
    border-color: var(--dark-color) !important;
}

/* Calculate button - ensure no blue */
.calculate-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #AD965F 100%) !important;
    border: none !important;
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 1rem !important;
}

/* Calculator Specific Styles */
.calculator-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    padding-left: 10px;
    padding-right: 10px;
}

.results-section {
    background: white;
    border: 1px solid #dee2e6;
    min-height: 400px;
    padding-left: 10px;
    padding-right: 10px;
}

.result-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-radius: 0.75rem;
    transition: transform 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Input Group */
.input-group-text {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    font-weight: 500;
}

/* Tables */
.table {
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    border-top: none;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.075);
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
}

.alert-dismissible .btn-close {
    padding: 1.25rem 1rem;
}

/* Progress */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.6s ease;
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    color: var(--primary-color);
    border: 1px solid #dee2e6;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Dropdowns */
.dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-item {
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Fix header dropdown - override sidebar overflow rules */
.novellus-header .dropdown,
.novellus-header .dropdown-menu,
.navbar .dropdown,
.navbar .dropdown-menu {
    overflow: visible !important;
    position: relative !important;
}

/* Ensure dropdown menu can be positioned properly */
.dropdown-menu {
    position: absolute !important;
    z-index: 1000 !important;
    overflow: visible !important;
}

/* Modals */
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.modal-title {
    font-weight: 600;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6;
}

/* Utility Classes */
.text-truncate-custom {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.border-radius-lg {
    border-radius: 0.75rem !important;
}

.shadow-sm-custom {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Currency Specific Styles */
.currency-gbp {
    color: #28a745;
}

.currency-eur {
    color: #007bff;
}

.currency-usd {
    color: #ffc107;
}

/* Status Indicators */
.status-draft { color: #6c757d; }
.status-submitted { color: #007bff; }
.status-under-review { color: #ffc107; }
.status-approved { color: #28a745; }
.status-rejected { color: #dc3545; }

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .result-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .btn, .pagination, footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
    
    .result-card {
        background: white !important;
        color: black !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    body {
        background: white !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #343a40;
        color: white;
    }
    
    .form-control, .form-select {
        background-color: #495057;
        border-color: #6c757d;
        color: white;
    }
    
    .table {
        color: white;
    }
    
    .table th {
        background-color: #495057;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: none;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .card {
        border-width: 2px;
    }
    
    .form-control,
    .form-select {
        border-width: 2px;
    }
}

/* Loan summary modal sizing */
#loanSummaryFieldsModal .modal-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    margin: 0;
}

#loanSummaryFieldsModal .modal-content {
    min-height: 100vh;
    border-radius: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Save/Update Loan button styling */
#saveLoanBtn {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

#saveLoanBtn:hover,
#saveLoanBtn:focus,
#saveLoanBtn:disabled {
    background-color: #fff !important;
    color: #000 !important;
}

/* Profile readonly field styles */
.profile-readonly {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #495057 !important;
    cursor: default !important;
    opacity: 0.8;
}

.profile-readonly:focus {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    box-shadow: none !important;
}

/* Sticky sidebar for application details - no height limit */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
    height: fit-content;
    overflow: visible;
}

/* Allow page to expand naturally - page scrollbar */
html, body {
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

/* Remove fixed height constraint - let content expand */
.main-content-scrollable {
    height: auto;
    min-height: 60vh;
    overflow: visible;
    padding-right: 8px;
}

/* Application form with controlled scrolling */
#applicationForm {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-right: -8px;
}

/* Remove scrollbars from nested elements */
.main-content-scrollable .card,
.main-content-scrollable .card-body,
.main-content-scrollable .form-control,
.main-content-scrollable .row,
.main-content-scrollable .col-md-6,
.main-content-scrollable .col-md-4,
.main-content-scrollable .col-12 {
    overflow: visible !important;
}

/* Prevent textarea from having its own scrollbar unless necessary */
.main-content-scrollable textarea.form-control {
    overflow: auto;
    max-height: 120px;
}

/* Ensure form elements inside the scrollable form don't create extra scrollbars */
#applicationForm .card,
#applicationForm .card-body,
#applicationForm .row,
#applicationForm .col-md-6,
#applicationForm .col-md-4,
#applicationForm .col-12 {
    overflow: visible !important;
}

/* Smooth scrolling behavior for main content */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for application form only */
#applicationForm::-webkit-scrollbar {
    width: 6px;
}

#applicationForm::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

#applicationForm::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

#applicationForm::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Hide scrollbars on sidebar components - show full content */
.sticky-sidebar * {
    overflow: visible !important;
}

.sticky-sidebar .card,
.sticky-sidebar .card-body,
.sticky-sidebar .card-header {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure sidebar sections expand to show all content */
.sticky-sidebar .card {
    height: auto;
    min-height: fit-content;
}

/* Remove any height restrictions from sidebar card bodies */
.sticky-sidebar .card-body {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    padding: 1rem;
}

/* Ensure document and notes sections show all content */
.sticky-sidebar #sidebarNotesHistory,
.sticky-sidebar .documents-list,
.sticky-sidebar .p-3 {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Remove Bootstrap overflow utilities that might cause scrollbars */
.sticky-sidebar .overflow-auto,
.sticky-sidebar .overflow-scroll,
.sticky-sidebar .overflow-hidden {
    overflow: visible !important;
}

/* Ensure textarea in notes section doesn't create scrollbars */
.sticky-sidebar textarea {
    resize: vertical;
    overflow: auto;
    min-height: 100px;
    height: auto;
}

/* Remove any scroll arrows or controls from headers */
.sticky-sidebar .card-header * {
    overflow: visible !important;
}

/* Ensure sidebar never gets a scrollbar itself */
.col-lg-4 .sticky-sidebar {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Remove any potential scroll arrows or controls from headers */
.sticky-sidebar .card-header button,
.sticky-sidebar .card-header .btn {
    overflow: visible !important;
}

/* Ensure all sidebar sections expand fully */
.sticky-sidebar .card:not(.collapse) {
    display: block !important;
    height: auto !important;
}

/* Remove any scroll indicators or arrows */
.sticky-sidebar .card-header::before,
.sticky-sidebar .card-header::after {
    display: none !important;
}

/* Ensure Bootstrap collapse sections don't create scrollbars */
.sticky-sidebar .collapse {
    overflow: visible !important;
}

.sticky-sidebar .collapse.show {
    overflow: visible !important;
    height: auto !important;
}

/* Force all content to be visible */
.sticky-sidebar,
.sticky-sidebar * {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Completely remove any scrolling capability from sidebar */
.col-lg-4,
.col-lg-4 *,
.sticky-sidebar,
.sticky-sidebar * {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* Ensure no Bootstrap utility classes override this */
.sticky-sidebar .overflow-auto,
.sticky-sidebar .overflow-hidden,
.sticky-sidebar .overflow-scroll,
.sticky-sidebar .h-100,
.sticky-sidebar .mh-100 {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* Remove any potential scroll containers */
.sticky-sidebar .container-fluid,
.sticky-sidebar .container,
.sticky-sidebar .row,
.sticky-sidebar .col {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure sidebar sections don't create scroll areas */
.sticky-sidebar .card-body,
.sticky-sidebar .p-3,
.sticky-sidebar div {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Optimize main content layout - let it expand naturally */
.main-content-scrollable .card.h-100 {
    height: auto !important;
    min-height: fit-content;
}

/* Ensure form elements don't create their own scroll areas */
.main-content-scrollable .form-control,
.main-content-scrollable .form-select {
    overflow: visible;
}

/* Prevent nested cards from creating scrollbars */
.main-content-scrollable .card .card {
    overflow: visible;
    height: auto;
}

/* Optimize spacing */
.main-content-scrollable .card-body {
    padding: 1rem;
}

.main-content-scrollable .card.mb-4 {
    margin-bottom: 1rem !important;
}

/* Ensure the main card expands to fit content */
.main-content-scrollable > .card {
    height: auto;
    min-height: 80vh;
}

/* Allow page to grow naturally */
.row.g-4 {
    min-height: calc(100vh - 100px);
}

/* Better container layout */
.row.g-4 {
    margin: 0 -0.5rem;
}

.row.g-4 > * {
    padding: 0 0.5rem;
}

/* Ensure the main container doesn't have overflow issues */
.container-fluid, .container, .row {
    overflow-x: hidden;
}

/* Enhanced application detail page styling */
.application-detail-page {
    background: #fafbfc;
    min-height: 100vh;
}

/* Improved card styling for better visual hierarchy */
.main-content-scrollable .card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background: #ffffff;
}

.main-content-scrollable .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.main-content-scrollable .card-header h6 {
    color: #495057;
    font-weight: 600;
}

/* Form section improvements */
.main-content-scrollable .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Progress bar styling */
.main-content-scrollable .progress {
    height: 4px;
    border-radius: 2px;
    background-color: #e9ecef;
}

.main-content-scrollable .progress-bar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 2px;
}

/* Sidebar enhancements */
.sticky-sidebar .card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sticky-sidebar .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

/* Button improvements */
.btn-outline-primary {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-primary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* =========================================
   HEADER DROPDOWN FIX - FLOATING DROPDOWN
   ========================================= */

/* Ensure header containers allow dropdown to overflow properly */
.novellus-header,
.novellus-header .navbar,
.novellus-header .navbar .container-fluid {
    overflow: visible !important;
    position: static !important;
}

/* Dropdown container needs relative positioning for Bootstrap Popper */
.novellus-header .dropdown {
    position: relative !important;
    z-index: 1000;
}

/* Dropdown menu styling - let Bootstrap handle positioning */
.novellus-header .dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
    min-width: 220px;
    max-width: 280px;
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175) !important;
    margin-top: 0.125rem !important;
}

/* Remove any constraints that might cause scrollbars in header */
.novellus-header .dropdown-menu {
    max-height: none !important;
    overflow: visible !important;
}

/* Ensure proper dropdown display */
.novellus-header .dropdown-menu.show {
    display: block !important;
}

/* Style dropdown items */
.novellus-header .dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 1rem !important;
    clear: both !important;
    font-weight: 400 !important;
    color: #212529 !important;
    text-decoration: none !important;
    background-color: transparent !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.novellus-header .dropdown-item:hover,
.novellus-header .dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #1e2125 !important;
}

/* Header and divider styling */
.novellus-header .dropdown-header {
    padding: 0.5rem 1rem !important;
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
    color: #6c757d !important;
}

.novellus-header .dropdown-divider {
    margin: 0.5rem 0 !important;
}

/* Ensure the dropdown button doesn't interfere */
.novellus-header .dropdown-toggle {
    z-index: 1051 !important;
}
