@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* --- PALETTE --- */
    --primary-color: #FF6A00;
    --primary-hover: #E65A00;
    --primary-soft: rgba(255, 106, 0, 0.1);

    /* Neutrals - Light Mode */
    --bg-body: #F8F9FA;
    --bg-card: #FFFFFF;

    /* Sidebar - Light Mode */
    --bg-sidebar: #FFFFFF;
    --sidebar-text: #64748B;
    --sidebar-text-hover: #FF6A00;
    --sidebar-bg-hover: rgba(255, 106, 0, 0.05);
    --sidebar-text-active: #FF6A00;
    --sidebar-bg-active: rgba(255, 106, 0, 0.1);
    --sidebar-brand-color: #1E293B;
    --sidebar-border-color: #E2E8F0;
    --sidebar-icon-color: #94A3B8;

    --text-title: #1E293B;
    --text-body: #475569;
    --text-muted: #94A3B8;

    --border-color: #E2E8F0;

    /* --- DIMENSIONS --- */
    --sidebar-width: 280px;
    --header-height: 70px;

    /* --- EFFECTS --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-speed: 0.2s;

    /* BOOTSTRAP OVERRIDES */
    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 255, 106, 0;
    --bs-body-bg: var(--bg-body);
}

[data-bs-theme="dark"] {
    /* --- DARK PALETTE --- */
    --bg-body: #0f1115;
    --bg-card: #181b21;

    /* Sidebar - Dark Mode */
    --bg-sidebar: #0f1115;
    --sidebar-text: #9CA3AF;
    --sidebar-text-hover: #FFFFFF;
    --sidebar-bg-hover: rgba(255, 255, 255, 0.03);
    --sidebar-text-active: #000000;
    --sidebar-bg-active: var(--primary-color);
    --sidebar-brand-color: #FFFFFF;
    --sidebar-border-color: rgba(255, 255, 255, 0.03);
    --sidebar-icon-color: #6B7280;

    --text-title: #ffffff;
    --text-body: #9ca3af;
    --text-muted: #6b7280;

    --border-color: #2d3342;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);

    --primary-soft: rgba(255, 106, 0, 0.15);

    /* Bootstrap Variable Overrides */
    --bs-body-bg: var(--bg-body);
    --bs-body-color: var(--text-body);
    --bs-border-color: var(--border-color);
}

/* --- TYPOGRAPHY --- */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    font-size: 0.925rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-title);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --- LAYOUT --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-body);
    transition: margin-left var(--transition-speed), width var(--transition-speed);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1042;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.content-area {
    padding: 2rem 3rem;
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: calc(100vh - var(--header-height) - 60px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    display: flex;
    flex-direction: column;
}

.content-area::-webkit-scrollbar {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SIDEBAR --- */
#sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-sidebar);
    color: var(--sidebar-text);
    z-index: 1045;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border-color);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

/* Sidebar close button */
#sidebarClose {
    color: var(--sidebar-brand-color);
    opacity: 0.7;
    transition: opacity 0.2s;
}

#sidebarClose:hover {
    opacity: 1;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sidebar-brand-color);
    letter-spacing: -0.02em;
}

.sidebar-menu {
    padding: 2rem 1rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.sidebar-menu::-webkit-scrollbar {
    display: none;
}

.sidebar-menu .nav-link {
    color: var(--sidebar-text);
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: all var(--transition-speed);
}

.sidebar-menu .nav-link i {
    font-size: 1.25rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
    color: var(--sidebar-icon-color);
    transition: color var(--transition-speed);
}

.sidebar-menu .nav-link:hover {
    background-color: var(--sidebar-bg-hover);
    color: var(--sidebar-text-hover);
}

.sidebar-menu .nav-link:hover i {
    color: var(--sidebar-text-hover);
}

.sidebar-menu .nav-link.active {
    background-color: var(--sidebar-bg-active);
    color: var(--sidebar-text-active);
    box-shadow: none;
}

.sidebar-menu .nav-link.active i {
    color: var(--sidebar-text-active);
}

/* --- NAVBAR --- */
.navbar {
    height: var(--header-height);
    background-color: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0 3rem;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 1rem 3rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    height: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-color);
}

/* --- COMPONENTS --- */
.card {
    background-color: var(--bg-card);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-soft);
    color: var(--text-title);
}

/* --- GLOBAL SCROLLBAR HIDE --- */
::-webkit-scrollbar {
    display: none !important;
}

html {
    scrollbar-width: none !important;
    overflow: hidden;
}

/* =========================================
   DARK MODE COMPONENT OVERRIDES
   ========================================= */

/* 1. Search Bar & Input Groups */
[data-bs-theme="dark"] .input-group-text {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-title) !important;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: var(--text-muted) !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: var(--bg-card) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-title) !important;
    box-shadow: 0 0 0 4px var(--primary-soft) !important;
}

/* Toggle Switch / Checkbox Overrides - FORCE ORANGE */
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-check-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem var(--primary-soft) !important;
}

/* 2. Tables */
[data-bs-theme="dark"] .table {
    --bs-table-color: var(--text-body);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-color: var(--text-body);
    --bs-table-active-bg: rgba(255, 255, 255, 0.05);
    --bs-table-active-color: var(--text-title);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-color: var(--text-title);
}

[data-bs-theme="dark"] .table thead th {
    background-color: var(--bg-card);
    color: var(--text-title);
    border-bottom-color: var(--border-color);
}

/* 3. Cards & Footers */
[data-bs-theme="dark"] .card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .card-footer {
    background-color: var(--bg-card) !important;
    border-top-color: var(--border-color) !important;
}

/* 4. Buttons */
[data-bs-theme="dark"] .btn-light {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-title);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--bg-card);
    color: var(--text-title);
    border-color: var(--text-muted);
}

/* 5. Text Utilities */
[data-bs-theme="dark"] .text-dark {
    color: var(--text-title) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

/* 6. Borders */
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-end,
[data-bs-theme="dark"] .border-start {
    border-color: var(--border-color) !important;
}

/* 7. Background Utilities */
[data-bs-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-title) !important;
}

/* =========================================
   MOBILE RESPONSIVE STYLES
   ========================================= */

/* Tablet & Mobile (max-width: 991px) */
@media (max-width: 991.98px) {

    /* Sidebar - Off-canvas behavior */
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        width: var(--sidebar-width);
        z-index: 1050;
    }

    #sidebar.show {
        transform: translateX(0);
    }

    /* Sidebar header for mobile - show close button */
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Main wrapper takes full width */
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    /* Navbar adjustments */
    .navbar {
        padding: 0 1rem;
        height: var(--header-height);
    }

    .navbar .container-fluid {
        padding: 0;
    }

    /* Show hamburger toggle */
    #sidebarToggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        margin-right: 0.5rem;
    }

    /* Content area adjustments */
    .content-area {
        padding: 1rem;
        height: calc(100vh - var(--header-height) - 50px);
    }

    /* Footer adjustments */
    .footer {
        padding: 0.75rem 1rem;
        height: 50px;
        font-size: 0.8rem;
    }

    .footer .container-fluid {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .footer .container-fluid>div:last-child {
        display: flex;
        gap: 1rem;
    }

    /* Cards responsive */
    .card {
        border-radius: var(--radius-lg);
    }

    .card-body {
        padding: 1rem;
    }

    /* Tables responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 600px;
    }

    /* Forms responsive - prevent zoom on iOS */
    .form-control,
    .form-select {
        font-size: 16px;
    }

    /* Buttons touch-friendly */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    /* Dropdown menus */
    .dropdown-menu {
        min-width: 200px;
    }

    .notification-dropdown {
        width: 320px;
        max-width: calc(100vw - 2rem);
        right: 0 !important;
        left: auto !important;
    }

    /* User dropdown on mobile */
    .navbar-nav .dropdown-menu {
        position: absolute !important;
    }

    /* Modal responsive */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-lg,
    .modal-xl {
        max-width: calc(100vw - 1rem);
    }

    /* Page title responsive */
    h1 {
        font-size: 1.5rem;
    }

    /* Hide text on navbar items for more space */
    .navbar-nav .d-md-block {
        display: none !important;
    }

    /* Stats cards */
    .stats-card .card-body {
        padding: 1rem;
    }

    /* Action buttons in tables */
    .btn-group-sm>.btn {
        padding: 0.4rem 0.6rem;
    }

    /* d-flex on page headers */
    .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Phone (max-width: 576px) */
@media (max-width: 575.98px) {

    /* Sidebar - full width on phone */
    #sidebar {
        width: 100%;
        max-width: 100vw;
    }

    .sidebar-header {
        padding: 0 1rem;
        height: 60px;
    }

    .sidebar-brand {
        font-size: 1.1rem;
    }

    /* Close button visibility */
    #sidebarClose {
        display: flex !important;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .sidebar-menu {
        padding: 1rem 0.75rem;
    }

    .sidebar-menu .nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    /* Navbar */
    .navbar {
        padding: 0 0.75rem;
        height: 56px;
    }

    /* Hamburger toggle on phone */
    #sidebarToggle {
        width: 40px;
        height: 40px;
        margin-right: 0.25rem;
    }

    #sidebarToggle i {
        font-size: 1.5rem;
    }

    /* Hide search on phone */
    .navbar .input-group,
    .navbar form.d-none {
        display: none !important;
    }

    /* Navbar items spacing */
    .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem;
    }

    /* Content area */
    .content-area {
        padding: 0.75rem;
        height: calc(100vh - 56px - 44px);
    }

    /* Footer */
    .footer {
        padding: 0.5rem 1rem;
        height: 45px;
        font-size: 0.75rem;
    }

    /* Page headers */
    .page-header-responsive {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    /* Cards */
    .card {
        border-radius: 12px;
    }

    .card-body {
        padding: 1rem;
    }

    .card-header,
    .card-footer {
        padding: 0.75rem 1rem;
    }

    /* Row columns layout */
    .row-cols-md-2>*,
    .row-cols-lg-3>*,
    .row-cols-lg-4>* {
        width: 100%;
    }

    /* Tables */
    .table {
        font-size: 0.85rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.5rem;
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        border: none;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-title);
        margin-right: 1rem;
    }

    /* Action buttons */
    .table .btn-group,
    .table .d-flex.gap-1 {
        width: 100%;
        justify-content: flex-end;
    }

    /* Alerts */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.35em 0.5em;
    }

    /* Modal */
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    /* Notification dropdown */
    .notification-dropdown {
        width: calc(100vw - 1rem);
        right: -50px !important;
    }

    .notification-item h6 {
        font-size: 0.85rem;
    }

    .notification-item p {
        font-size: 0.75rem;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    /* Statistics cards grid */
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    /* Charts */
    .chart-container {
        height: 200px !important;
    }

    /* Form labels */
    .form-label {
        font-size: 0.875rem;
    }

    /* Summernote editor */
    .note-editor {
        font-size: 14px;
    }

    .note-toolbar {
        flex-wrap: wrap;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 0.3rem;
    }
}

/* Extra small devices (max-width: 399px) */
@media (max-width: 399.98px) {
    .content-area {
        padding: 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    h1,
    .h1 {
        font-size: 1.5rem;
    }

    h2,
    .h2 {
        font-size: 1.25rem;
    }

    h3,
    .h3 {
        font-size: 1.1rem;
    }

    /* Hide less important elements */
    .d-none-xxs {
        display: none !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase tap targets */
    .btn {
        min-height: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
    }

    .form-check-input {
        width: 1.25em;
        height: 1.25em;
    }

    .form-check-label {
        padding-left: 0.25rem;
    }

    /* Remove hover effects that don't work well on touch */
    .card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .content-area {
        height: calc(100vh - 50px - 40px);
    }

    .footer {
        height: 40px;
        padding: 0.5rem 1rem;
    }

    .navbar {
        height: 50px;
    }

    .sidebar-header {
        height: 50px;
    }
}

/* Print styles */
@media print {

    #sidebar,
    .navbar,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .content-area {
        padding: 0;
        height: auto;
        overflow: visible;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* --- SETTINGS PAGE STYLES --- */
.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.nav-tabs .nav-link:hover {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.05);
}
.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
    background: transparent;
}
.group-image-preview:hover img {
    opacity: 0.9;
}
.bg-row-odd {
    background-color: #ffffff !important;
}
.bg-row-even {
    background-color: #f1f5f9 !important; /* Distinct Gray */
}
[data-bs-theme='dark'] .bg-row-odd {
    background-color: var(--bg-card) !important;
}
[data-bs-theme='dark'] .bg-row-even {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/ *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
       S U M M E R N O T E   D A R K   M O D E   O V E R R I D E S  
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * /  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - e d i t o r . n o t e - f r a m e   {  
         b o r d e r - c o l o r :   v a r ( - - b o r d e r - c o l o r )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - e d i t o r . n o t e - f r a m e   . n o t e - e d i t i n g - a r e a   . n o t e - e d i t a b l e   {  
         b a c k g r o u n d - c o l o r :   v a r ( - - b g - c a r d )   ! i m p o r t a n t ;  
         c o l o r :   v a r ( - - t e x t - b o d y )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - e d i t o r . n o t e - f r a m e   . n o t e - s t a t u s b a r   {  
         b a c k g r o u n d - c o l o r :   v a r ( - - b g - c a r d )   ! i m p o r t a n t ;  
         b o r d e r - t o p - c o l o r :   v a r ( - - b o r d e r - c o l o r )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - t o o l b a r   {  
         b a c k g r o u n d - c o l o r :   v a r ( - - b g - c a r d )   ! i m p o r t a n t ;  
         b o r d e r - b o t t o m - c o l o r :   v a r ( - - b o r d e r - c o l o r )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - b t n - g r o u p   . n o t e - b t n   {  
         b a c k g r o u n d - c o l o r :   t r a n s p a r e n t   ! i m p o r t a n t ;  
         b o r d e r - c o l o r :   t r a n s p a r e n t   ! i m p o r t a n t ;  
         c o l o r :   v a r ( - - t e x t - m u t e d )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - b t n - g r o u p   . n o t e - b t n : h o v e r ,  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - b t n - g r o u p   . n o t e - b t n . a c t i v e   {  
         b a c k g r o u n d - c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 )   ! i m p o r t a n t ;  
         c o l o r :   v a r ( - - t e x t - t i t l e )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - e d i t o r . n o t e - f r a m e   . n o t e - p l a c e h o l d e r   {  
         c o l o r :   v a r ( - - t e x t - m u t e d )   ! i m p o r t a n t ;  
 }  
  
 / *   F i x   d r o p d o w n   m e n u   i n   t o o l b a r   * /  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - e d i t o r   . d r o p d o w n - m e n u   {  
         b a c k g r o u n d - c o l o r :   v a r ( - - b g - c a r d )   ! i m p o r t a n t ;  
         b o r d e r - c o l o r :   v a r ( - - b o r d e r - c o l o r )   ! i m p o r t a n t ;  
         b o x - s h a d o w :   v a r ( - - s h a d o w - c a r d )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - e d i t o r   . d r o p d o w n - i t e m   {  
         c o l o r :   v a r ( - - t e x t - b o d y )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - e d i t o r   . d r o p d o w n - i t e m : h o v e r   {  
         b a c k g r o u n d - c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 )   ! i m p o r t a n t ;  
         c o l o r :   v a r ( - - t e x t - t i t l e )   ! i m p o r t a n t ;  
 }  
  
 / *   F i x   m o d a l   i n   s u m m e r n o t e   * /  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - m o d a l - c o n t e n t   {  
         b a c k g r o u n d - c o l o r :   v a r ( - - b g - c a r d )   ! i m p o r t a n t ;  
         b o r d e r - c o l o r :   v a r ( - - b o r d e r - c o l o r )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - m o d a l - h e a d e r   {  
         b o r d e r - b o t t o m - c o l o r :   v a r ( - - b o r d e r - c o l o r )   ! i m p o r t a n t ;  
 }  
  
 [ d a t a - b s - t h e m e = " d a r k " ]   . n o t e - m o d a l - f o o t e r   {  
         b o r d e r - t o p - c o l o r :   v a r ( - - b o r d e r - c o l o r )   ! i m p o r t a n t ;  
 }  
 / *   O v e r r i d e   b g - w h i t e   i n   d a r k   m o d e   t o   p r e v e n t   h a r d c o d e d   w h i t e   b a c k g r o u n d s   * /  
 [ d a t a - b s - t h e m e = " d a r k " ]   . b g - w h i t e   {  
         b a c k g r o u n d - c o l o r :   v a r ( - - b g - c a r d )   ! i m p o r t a n t ;  
         c o l o r :   v a r ( - - t e x t - t i t l e )   ! i m p o r t a n t ;  
 }  
 