﻿

/* ═══════════════════════════════════════════════════════════════════════════
   CARD IN CLOUD - Core Layout & Components
   Professional Design System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   1. BASE & TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background-light);
    color: var(--text-medium);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. MAIN CONTENT WRAPPER
   ───────────────────────────────────────────────────────────────────────────── */
.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    background: var(--background-light);
    overflow-x: hidden;
}

@media (min-width: 769px) {
    .main-content-wrapper {
        transition: margin-left 0.2s ease;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. MODERN HEADER / NAVBAR
   ───────────────────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 1.25rem;
    width: 100%;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Page Title */
.header-title-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-subtitle {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 2px;
}

/* Mobile: Add space for hamburger menu */
@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem;
    }
    
    .header-title-wrapper {
        margin-left: 48px;
    }
    
    .header-title {
        font-size: 1.1rem;
    }
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Search Box in Header */
.header-search {
    display: none;
}

@media (min-width: 992px) {
    .header-search {
        position: relative;
        display: block;
    }
    
    .header-search input {
        width: 200px;
        padding: 0.5rem 1rem 0.5rem 2.25rem;
        font-size: 0.85rem;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        background: var(--background-light);
        color: var(--text-dark);
        transition: all 0.2s ease;
    }
    
    .header-search input:focus {
        width: 260px;
        border-color: var(--primary-color);
        background: var(--white);
        outline: none;
        box-shadow: 0 0 0 3px var(--focus-ring);
    }
    
    .header-search input::placeholder {
        color: var(--text-placeholder);
    }
    
    .header-search i {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-gray);
        font-size: 0.85rem;
    }
}

/* Notification Bell */
.header-notification {
    display: none;
}

@media (min-width: 768px) {
    .header-notification {
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        background: var(--background-light);
        color: var(--text-gray);
        border: 1px solid var(--border-light);
        cursor: pointer;
        transition: all 0.15s ease;
    }
    
    .header-notification:hover {
        background: var(--background-medium);
        color: var(--primary-color);
        border-color: var(--primary-light);
    }
    
    .header-notification .badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 0.65rem;
        font-weight: 600;
        background: var(--danger-color);
        color: var(--text-light);
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--white);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. USER DROPDOWN
   ───────────────────────────────────────────────────────────────────────────── */
.user-dropdown {
    position: relative;
    flex-shrink: 0;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem;
    padding-right: 0.75rem;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease;
}

.user-dropdown-toggle:hover {
    background: var(--background-medium);
    border-color: var(--border-medium);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: var(--brand-gradient);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.25);
}

.user-info {
    display: none;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: capitalize;
}

.user-dropdown-icon {
    color: var(--text-gray);
    font-size: 0.65rem;
    display: none;
    transition: transform 0.2s ease;
}

.user-dropdown.show .user-dropdown-icon {
    transform: rotate(180deg);
}

/* Desktop: show user info and icon */
@media (min-width: 768px) {
    .user-info {
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    
    .user-dropdown-icon {
        display: block;
    }
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    max-width: 280px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile: Fixed position dropdown */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: fixed;
        top: 65px;
        right: 1rem;
        left: auto;
        max-width: calc(100vw - 2rem);
    }
}

.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--background-light);
}

.dropdown-header .user-name {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.dropdown-header .user-email {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 3px;
    word-break: break-all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-medium);
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.dropdown-item:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-item:active {
    background: var(--background-medium);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
}

.dropdown-item.text-danger {
    color: var(--danger-color);
}

.dropdown-item.text-danger i {
    color: var(--danger-color);
}

.dropdown-item.text-danger:hover {
    background: var(--danger-bg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. MAIN CONTENT AREA
   ───────────────────────────────────────────────────────────────────────────── */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: .75rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main-content {
        padding: .5rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. MODERN FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    padding: 1.25rem 1.5rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.8rem;
    background: var(--white);
}

.site-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--primary-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
7. DASHBOARD CARDS
───────────────────────────────────────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.dashboard-card {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 16px;
    border: none;
    position: relative;
    box-shadow: 0 10px 20px rgba(var(--black-rgb),.10);
    display: flex;
    flex-direction: column;
    transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s cubic-bezier(.25,.8,.25,1);
}

    .dashboard-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 40px rgba(var(--black-rgb),.20);
    }

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

.dashboard-card p {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: .9rem;
    z-index: 1;
}

/* Subsidiary list ---------------------------------------------*/
.dashboard-card .subsidiary-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border-light);
    z-index: 1;
}

    .dashboard-card .subsidiary-list li {
        margin-bottom: 0.3rem;
    }

        .dashboard-card .subsidiary-list li:last-child {
            margin-bottom: 0;
        }

    .dashboard-card .subsidiary-list .link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .6rem 0;
        font-size: .9rem;
        color: var(--primary-color);
        text-decoration: none;
        transition: color .2s,transform .2s;
        position: relative;
    }

        .dashboard-card .subsidiary-list .link:hover {
            color: var(--primary-dark);
            transform: translateX(8px);
        }

        .dashboard-card .subsidiary-list .link:focus-visible {
            outline: none;
            box-shadow: 0 0 0 .2rem var(--focus-ring);
        }

        .dashboard-card .subsidiary-list .link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(var(--primary-rgb),.08);
            width: 0;
            transition: width .3s;
            z-index: -1;
        }

        .dashboard-card .subsidiary-list .link:hover::before {
            width: 100%;
        }

        .dashboard-card .subsidiary-list .link::after {
            content: '\f105';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            margin-left: 10px;
            color: var(--primary-color);
            transition: transform .2s,color .2s;
            transform: translateX(0);
        }

        .dashboard-card .subsidiary-list .link:hover::after {
            transform: translateX(5px);
            color: var(--primary-dark);
        }


/* ─────────────────────────────────────────────────────────────────────────────
8. STAT CARDS
───────────────────────────────────────────────────────────────────────────── */
.stat-card .card-body {
    padding: 1rem; /* down from 1.5rem */
    min-height:150px;
    align-content:center;
}

.stat-card i.fa-2x {
    font-size: 1.5rem; /* down from ~2rem */
    margin-bottom: 0.4rem; /* tighten the gap */

}

.stat-card h2 {
    font-size: 1.75rem; /* down from 2.5rem */
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.85rem; /* down from 1rem */
    margin-bottom: 0.4rem;
}

.stat-card small {
    font-size: 0.75rem; /* down from 0.8–0.9rem */
    line-height: 1.2;

}

    /* if you want even smaller status dots: */
    .stat-card small i.fas.fa-circle,
    .stat-card small i.far.fa-circle {
        font-size: 0.5rem; /* tiny dot */
        margin-right: 0.25rem;
    }


/* ─────────────────────────────────────────────────────────────────────────────
9. STATUS DOTS
───────────────────────────────────────────────────────────────────────────── */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.status-active {
    background: var(--success-color);
}

.status-inactive {
    background: var(--danger-color);
}

/* ─────────────────────────────────────────────────────────────────────────────
10. DELETE FORM
───────────────────────────────────────────────────────────────────────────── */
.delete-form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

    .delete-form button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

/* ─────────────────────────────────────────────────────────────────────────────
11. EMPTY DATA STATE
───────────────────────────────────────────────────────────────────────────── */
.no-data-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

/* ─────────────────────────────────────────────────────────────────────────────
12. NON-AUTHENTICATED LAYOUT
───────────────────────────────────────────────────────────────────────────── */
.full-page-content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-centered {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────────────────
13. USER DISPLAY
───────────────────────────────────────────────────────────────────────────── */
.user-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-message {
    color: var(--text-medium);
    font-size: .875rem;
}


/* ─────────────────────────────────────────────────────────────────────────────
14. ANIMATIONS
───────────────────────────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn .6s ease-out forwards;
    opacity: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
15. ALERT BOXES
───────────────────────────────────────────────────────────────────────────── */
.alert {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.alert-info { /* added to match info palette */
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
}

/* Header actions moved to section 3 */

/* ─────────────────────────────────────────────────────────────────────────────
16. MODAL
───────────────────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(var(--black-rgb),.60);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(var(--black-rgb),.20);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-header .close {
    padding: .5rem;
    margin: -.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    color: var(--text-gray);
    opacity: .5;
    cursor: pointer;
    transition: opacity .2s;
}

    .modal-header .close:hover {
        opacity: .75;
    }

.modal-body {
    padding: 1.5rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
17. EXPANDABLE CONTAINERS
───────────────────────────────────────────────────────────────────────────── */
.expandable-container {
    border: none;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(var(--black-rgb),.06);
    transition: box-shadow .35s cubic-bezier(.25,.46,.45,.94);
}

    .expandable-container:hover {
        box-shadow: 0 8px 22px rgba(var(--black-rgb),.10);
    }

/* Expandable Header */
.expandable-header {
    background: var(--background-medium);
    padding: 10px 16px; /* was 14px 20px  */
    font-size: .95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
    color: var(--text-dark);
    border: 1px solid var(--border-medium);
    border-bottom: none; /* merges with content */
    border-radius: 12px 12px 0 0;
    transition: background .35s, color .35s;
}

    .expandable-header:hover {
        background: var(--background-accent);
    }

    .expandable-header.expanded {
        background: var(--background-light);
    }

    .expandable-header:focus-visible {
        outline: none;
        box-shadow: 0 0 0 .25rem var(--focus-ring);
    }

    .expandable-header:active {
        transform: translateY(1px);
    }

/* Expandable Chevron */
.expand-symbol {
    color: var(--primary-color);
    transition: transform .35s;
}

.expandable-header.expanded .expand-symbol {
    transform: rotate(180deg);
}

/* Expandable Content (smooth reveal) */
.expandable-content {
    background: var(--white);
    border: 1px solid var(--border-medium);
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    /* animation */
    max-height: 0;
    opacity: 0;
    padding: 0; /* collapsed  (was 0 20) */
    transition: max-height .4s cubic-bezier(.25,.46,.45,.94), opacity .3s ease, padding .4s;
}

    .expandable-content.expanded {
        max-height: 100vh; /* plenty for typical panels */
        opacity: 1;
        padding: 0px; /* expanded   (was 15px 20) */
    }

/* ??? Container “glow” when open (pure CSS :has) ?????????????? */
@supports(selector(:has(*))) {
    .expandable-container:has(.expandable-header.expanded) {
        box-shadow: 0 8px 22px rgba(var(--black-rgb),.12);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
18. VALIDATION & UTILITIES
───────────────────────────────────────────────────────────────────────────── */
.validation-summary-errors {
    background:var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

    .validation-summary-errors ul {
        padding-left: 20px;
        margin: 0;
    }

    .validation-summary-errors li {
        list-style-type: disc;
    }

.text-danger {
    color: var(--danger-color);
    font-size: .9em;
    margin-top: 5px;
    display: block;
}

.text-muted {
    color: var(--text-gray) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
19. IMAGE CONTAINER
───────────────────────────────────────────────────────────────────────────── */
.image-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(var(--black-rgb),.08);
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

    .image-container img {
        max-width: 100%;
        height: auto;
        border: 1px solid var(--border-light);
        border-radius: 4px;
        display: block;
        margin: 0 auto;
    }

/* ─────────────────────────────────────────────────────────────────────────────
20. MISCELLANEOUS
───────────────────────────────────────────────────────────────────────────── */
textarea {
    resize: none;
    height: 6rem;
}


.table {
    width: 100%;
    background: var(--white);
    color: var(--text-dark);
    border-collapse: collapse;
}

    .table th,
    .table td {
        border-top: 1px solid var(--border-light);
    }

    .table thead th {
        background: var(--background-light);
        font-weight: 600;
        color: var(--text-dark);
    }

    .table tbody tr:hover {
        background: var(--background-accent);
    }

    .table tbody tr {
        border-bottom: 1px solid var(--border-light);
    }



/* ─────────────────────────────────────────────────────────────────────────────
21. FORMS & INPUTS
───────────────────────────────────────────────────────────────────────────── */

.form-select,
.form-control {
    color: var(--input-text);
    background-color: var(--input-bg);
    border: solid 1px var(--border-light);
    transition: background .2s ease, color .2s ease, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
    .form-select:focus,
    .form-control:focus {
        background-color: var(--input-bg-focus);
        color: var(--input-text-focus);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .25);
        outline: none;
    }


    .form-select:disabled,
    .form-control:disabled,
    .form-select[readonly],
    .form-control[readonly] {
        background-color: var(--disabled-bg);
        color: var(--disabled-text);
        border-color: var(--disabled-border);
        opacity: var(--disabled-opacity);
        cursor: not-allowed;
        pointer-events: none;
    }

        .form-select:disabled:focus,
        .form-control:disabled:focus,
        .form-select[readonly]:focus,
        .form-control[readonly]:focus {
            background-color: var(--disabled-bg);
            border-color: var(--disabled-border);
            box-shadow: none;
            outline: none;
        }

/*          codemirrior        */

.CodeMirror {
    background-color: var(--background-light);
    color: var(--text-dark);
}
.CodeMirror-gutters {
    background-color: var(--background-accent);
    color: var(--text-subtle);
    border-right: 1px solid var(--border-light);
}

.CodeMirror-activeline-background {
    background-color: var(--background-medium);
}


.CodeMirror-cursor {
    border-left: 1px solid var(--primary-deep);
}

.CodeMirror-matchingbracket {
    outline: 1px solid var(--secondary-color);
}

.CodeMirror-selected {
    background-color: var(--background-accent); /* replaces #d9d9d9 */
}

.CodeMirror-focused .CodeMirror-selected {
    background-color: var(--primary-light); /* replaces #d7d4f0 */
}

.CodeMirror-crosshair {
    cursor: crosshair;
}

/* Selection across browsers (standard + Firefox) */
.CodeMirror-line::selection,
.CodeMirror-line > span::selection,
.CodeMirror-line > span > span::selection,
.CodeMirror-line::-moz-selection,
.CodeMirror-line > span::-moz-selection,
.CodeMirror-line > span > span::-moz-selection {
    background-color: var(--primary-light); /* selection highlight */
}
