:root {
    --primary-blue: #101E5A;
    --accent-blue: #2c4294;
    --light-bg: #f4f6f9;
    --white: #ffffff;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --chart-color-1: #101E5A;
    --chart-color-2: #3498db;
    --chart-color-3: #e67e22;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* --- Header (Simplified) --- */
header {
    background-color: var(--white);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

/* --- Page Title --- */
.page-header {
    padding: 30px 5%;
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.page-header p {
    opacity: 0.9;
    font-weight: 300;
}

/* --- Global Filters (Sticky) --- */
.filters-section {
    background: var(--white);
    padding: 20px 5%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* position: sticky; */
    /* top: 0; */
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 600;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    background-color: #fff;
}

/* --- Main Dashboard Layout --- */
.dashboard-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-header {
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-blue);
    padding-right: 15px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.section-header span {
    color: var(--text-light);
    font-size: 0.95rem;
    display: block;
    margin-top: 5px;
}

.row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Row 1: Momentum Counters --- */
.kpi-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.kpi-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-bottom: 4px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.kpi-info h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.kpi-icon {
    font-size: 3rem;
    color: rgba(16, 30, 90, 0.1);
}

.trend-badge {
    font-size: 0.9rem;
    color: #27ae60;
    background: #e8f8f5;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

/* --- Chart Containers --- */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* --- Skills Tag Cloud (Visual for KPI 4) --- */
.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: center;
    height: 100%;
}

.skill-tag {
    background: rgba(16, 30, 90, 0.05);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: 0.3s;
}

.skill-tag:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Simulation of "Word Cloud" sizing */
.size-lg {
    font-size: 1.4rem;
    font-weight: 800;
    opacity: 1;
}

.size-md {
    font-size: 1.1rem;
    opacity: 0.9;
}

.size-sm {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Map Placeholder --- */
.map-placeholder {
    background-color: #e3f2fd;
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.map-bg {
    /* This is a CSS-only visual representation of a map outline */
    width: 80%;
    height: 80%;
    border: 2px dashed #90caf9;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {

    .row-grid,
    .kpi-container {
        grid-template-columns: 1fr;
    }
}

/* Make the selectpicker button white */
.bootstrap-select .dropdown-toggle {
    background-color: #fff !important; /* white background */
    color: #000 !important;            /* black text */
    border: 1px solid #ced4da !important; /* default bootstrap border */
    border-radius: 0.375rem !important;
    box-shadow: none !important;       /* remove any default shadow */
}

/* Focus / active / clicked state */
.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select .dropdown-toggle.focus,
.bootstrap-select.open .dropdown-toggle {
    background-color: #fff !important;
    border-color: #86b7fe !important; /* bootstrap blue focus */
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25) !important;
    outline: none !important;
}

/* Dropdown menu items */
.bootstrap-select .dropdown-menu {
    background-color: #fff !important; /* white dropdown */
    color: #000 !important;
    border: 1px solid #ced4da !important;
}

/* Hover state for items */
.bootstrap-select .dropdown-menu li a:hover {
    background-color: #f8f9fa !important; /* light gray hover */
    color: #000 !important;
}

/* Selected item */
.bootstrap-select .dropdown-menu li.selected a {
    background-color: #e9ecef !important; /* slightly darker for selected */
    color: #000 !important;
}

/* Arrow color */
.bootstrap-select .dropdown-toggle::after {
    color: #000 !important;
}

/* Search box inside dropdown */
.bootstrap-select .bs-searchbox input {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #ced4da !important;
}

.chart-wrapper {
    position: relative;
    height: 300px; /* 👈 adjust as needed */
    width: 100%;
}

.chart-wrapper canvas {
    max-height: 100% !important;
}
.insights .navbar-expand-sm .navbar-collapse{
    justify-content: flex-end !important;
}
.bootstrap-select:not(.input-group-btn), .bootstrap-select[class*=col-]{
    border: none;
    background: transparent;
    padding: 0;
}