:root {
    --sidebar-width: 260px;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --border-color: #e5e7eb;
    --bg-hover: #f3f4f6;
    --accent: #2563eb;
}

.category-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 98%;
    margin: 0 20px 25px 50px;
}

.category-header-box {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0;
    color: white;
    border-radius: 8px;
}

.category-header-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 20px;
    height: 100%;
    width: 100%;
    display: inline-block;
    border-radius: 8px;
}

.category-header-overlay .category-title {
    margin: 0;
    text-align: left;
    color: white !important;
    font-size: 1.8rem;
    font-weight: 600;
}

.category-header-overlay .breadcrumb {
    margin-left: 4px;
    text-align: left;
    color: white !important;
    font-size: 14px;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
}

.category-header-overlay .breadcrumb a {
    color: white !important;
    text-decoration: none;
}

.category-header-overlay .breadcrumb a:hover {
    text-decoration: underline;
}

.category-header-overlay .breadcrumb .separator {
    margin: 0 6px; /* add spacing around slashes */
}

.breadcrumb i {
    font-size: 13px;
}

.breadcrumb i.bi-folder2-open {
    margin-right: 8px;
}

.breadcrumb i.bi-chevron-right {
    margin: 0 6px;
}

.browse-category-container {
    margin: 0 auto;
    width: 95%;
    display: grid;
    grid-template-columns: 1fr 5fr;
}


/* Sidebar Styling */
.sidebar-group {
    margin-bottom: 32px;
}

.sidebar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.nav-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--accent);
}

.nav-item:hover i {
    color: var(--accent);
}


/* ============= INDICATOR GRID ============= */

.indicator-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0 0 50px 50px;
    width: 95%;
    text-decoration: none;
}


.indicator-column {
    padding: 20px 20px;
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1.2px solid #D5D8DC;
}


.indicator-column h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    border-bottom: 1px solid #e5e7eb;
    margin-left: -10.2px;   /* Pulls the box left */
    margin-right: -10.2px;  /* Pulls the box right */
    padding-left: 10.2px;   /* Pushes the text back to center/original position */
    padding-right: 10.2px;  /* Keeps the hit-area balanced */
}


.indicator-column h3 a {
    text-decoration: none;
    color: #1a73e8;
    transition: color 0.2s ease-in-out;
}


.indicator-column h3 a:hover {
    color: #1557b0;
    text-decoration: underline;
}

.highlighted-section {
    margin: 15px 0;
}


.series-list-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: "Inter", sans-serif;
}

.series-list-inline li {
    display: inline; /* Keep items inline */
    margin-right: 8px;
    font-size: 0.95rem;
}

.series-list-inline a {
    color: #1a73e8;
    text-decoration: none;
    display: inline-flex; /* Changed from inline-flex */
    font-family: "Inter", sans-serif;
    margin-bottom: 8px;
}

/* Hide icon by default */
.series-list-inline a i {
    opacity: 0;
    font-size: 0.75rem;
    margin-left: 3px;
    transition: opacity 0.15s ease;
}

/* Show icon and underline on hover */
.series-list-inline a:hover {
    color: #1557b0;
    text-decoration: underline;
}

.series-list-inline a:hover i {
    opacity: 1;
}


/*** OLD formating
.indicator-column ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.indicator-column li {
    margin-bottom: 5px;
    margin-left: 10px;

}

.indicator-column li a {
    text-decoration: none;
    color: #1a73e8;
    font-family: "Inter", sans-serif;
}

.indicator-column li a:hover {
    color: #1557b0;
    text-decoration: underline;
}
 ***/

.group-label {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    padding: 6px 14px;
    margin: 4px 0;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: "Inter", sans-serif;
}

.group-label.clickable {
    display: flex;
    align-items: center;
    justify-content: flex-start;    /* Keeps everything to the left */
    gap: 12px;                      /* Controls the exact spacing between icon, text, and badge */
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.group-label.clickable:hover {
    background: #f8f9fa;
    border-color: #000099;
    color: #000099;
    cursor: pointer;
    user-select: none;
}

.count-badge {
    background: #e9ecef;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 600;
    margin-left: auto;
}


.btn-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;                /* Fills the column */
    gap: 10px;                  /* Space for the icon */
    padding: 12px 0;            /* Taller hit area for better UX */
    margin-top: 12px;           /* Gap from the last group label */
    background: #F8F9F9;
    color: #333;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: #f8fafc;
    color: #333;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* Base state: Hidden and transparent */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;

    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* State when active */
.modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* Prevents the main page from scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

.modal-box {
    background: #ffffff;
    width: 95%;
    padding: 8px;
    max-width: 850px;
    max-height: 85vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    background: #fff;
    gap: 16px;
}

.modal-title-section {
    flex-grow: 1;
}

.modal-title-section h4 {
    font-size: 1rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
}

.modal-title-section h5 {
    font-size: 0.9rem;
    font-weight: 400;
    font-family: "Inter", sans-serif;
    color: #808080;
}

.modal-close {
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    background: #F9FAFB;
    border-radius: 4px;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #404040;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    color: #8B0836;
    background: #FFF1F2;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    background: #ffffff;
}

.modal-body h4 {
    font-size: 16px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
}

.modal-body h6 {
    margin: 25px 0 10px 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    font-family: "Inter", sans-serif;
}

.modal-body h6:first-of-type {
    margin-top: 0;
}


/* Series list in modals */
.series-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.series-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.series-item:last-child {
    border-bottom: none;
}

.series-code {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #495057; /* Dark grey text */
    background: #e9ecef; /* Light grey background like in image */
    padding: 6px 12px;
    border-radius: 6px;
    min-width: 120px;
    text-align: center;
    flex-shrink: 0;
}

.series-link {
    flex: 1;
    color: #1a73e8; /* Blue link */
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.series-link:hover {
    text-decoration: underline;
}

/* Hide icon by default */
.series-link i {
    opacity: 0;
    font-size: 0.75rem;
}

/* Show icon on hover */
.series-link:hover i {
    opacity: 1;
}

/* Dimension header (for secondary groups) */
.dimension-header {
    margin: 25px 0 10px 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.dimension-header:first-child {
    margin-top: 0;
}













/* ============================================ */
/* TABULATOR CUSTOMIZATION - Match your design */
/* ============================================ */

.tabulator-table {
    font-size: 14px;
    font-family: "Inter", sans-serif;
}

/* Remove Tabulator's default border */
.tabulator {
    border: none;
    background: transparent;
}

/* Header styling - match your .series-table th */
.tabulator .tabulator-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-family: "Inter", sans-serif;
}

.tabulator .tabulator-col {
    background: #f8fafc;
    border-right: none;
}

.tabulator .tabulator-col-content {
    padding: 10px 15px;
}

.tabulator .tabulator-col-title {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    font-family: "Inter", sans-serif;
}

/* Row styling - match your .series-table td */
.tabulator .tabulator-row {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    pointer-events: auto;
    /* REDUCED TRANSITION - Less laggy! */
    transition: background-color 0.05s ease;
}

.tabulator .tabulator-row .tabulator-cell {
    padding: 12px 15px;
    border-right: none;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
}

/* Hover effect - match your .series-table tbody tr:hover */
/* INSTANT hover - no transition lag */
.tabulator .tabulator-row:hover {
    background-color: #f0f7ff !important;
}

/* Active/selected row */
.tabulator .tabulator-row.tabulator-selected {
    background-color: #e0f2fe !important;
}

/* First column (code/label) - match your .series-label */
.tabulator .tabulator-row .tabulator-cell:first-child {
    font-weight: 700;
    color: #1a73e8;
    width: 180px;
}

.tabulator .tabulator-cell {
    pointer-events: auto; /* Make sure clicks work */
}

/* Pagination styling to match your theme */
.tabulator .tabulator-footer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px 15px;
    font-family: "Inter", sans-serif;
}

.tabulator .tabulator-page {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #ffffff;
    color: #475569;
    font-family: "Inter", sans-serif;
    margin: 0 2px;
    min-width: 32px;
    padding: 4px 8px;
}

.tabulator .tabulator-page:hover {
    background: #f0f7ff;
    border-color: #1a73e8;
    color: #1a73e8;
}

.tabulator .tabulator-page.active {
    background: #1a73e8;
    color: #ffffff;
    border-color: #1a73e8;
}

.tabulator .tabulator-page[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Loader styling - Clean white background with simple spinner */
.tabulator .tabulator-loader {
    border: none;
    background: rgba(255, 255, 255, 0.97);
}

/* Hide the default loader message box completely */
.tabulator .tabulator-loader-msg {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0; /* Hide text */
}

/* Just show the spinning circle */
.tabulator .tabulator-loader-msg::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: 0; /* Remove margin since there's no text */
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B0836; /* Your brand color */
    border-radius: 50%;
    animation: tabulator-spin 1s linear infinite;
}

@keyframes tabulator-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Group label and button styling */
.group-label.clickable,
.btn-view-all {
    cursor: pointer;
}

/* OLD TABLE STYLES - Keep for backwards compatibility if needed */
.series-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.series-table th {
    background: #f8fafc;
    text-align: left;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    font-family: "Inter", sans-serif;
}

.series-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
}

.series-table tbody tr {
    cursor: pointer;
}

.series-table tbody tr:hover {
    background-color: #f0f7ff;
}

.series-label {
    font-weight: 700;
    color: #1a73e8;
    width: 180px;
}











