/* Base CSS & Design System */
:root {
    --bg-main: #06060c;
    --bg-surface: rgba(16, 16, 28, 0.75);
    --bg-card: rgba(22, 22, 38, 0.55);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(141, 78, 255, 0.3);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-purple: #8d4eff;
    --accent-purple-glow: rgba(141, 78, 255, 0.15);
    --accent-teal: #00e5bc;
    --accent-teal-glow: rgba(0, 229, 188, 0.15);
    --accent-pink: #ff4e88;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(141, 78, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 229, 188, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

/* Header & Logo Area */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-area h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-live {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 229, 188, 0.15);
    color: var(--accent-teal);
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid rgba(0, 229, 188, 0.3);
    align-self: flex-start;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.logo-area .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
}

.nav-tab {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: var(--shadow-sm), 0 0 10px var(--accent-purple-glow);
}

.view-content {
    animation: fadeIn 0.3s ease;
}

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

/* Filters Bar Container */
.filters-bar {
    position: relative;
    z-index: 50;
    margin-bottom: 32px;
    padding: 24px !important;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    width: 100%;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Custom Searchable Multi-Select Component */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.custom-multiselect .select-box {
    background: rgba(30, 30, 50, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 14px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-multiselect .select-box:hover {
    border-color: var(--text-muted);
}

.custom-multiselect.active .select-box {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px var(--accent-purple-glow);
}

.custom-multiselect.disabled .select-box {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(20, 20, 30, 0.3);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 90%;
}

.tags-container .placeholder {
    color: var(--text-muted);
    user-select: none;
}

.tags-container .tag {
    background: rgba(141, 78, 255, 0.15);
    color: #c4adff;
    border: 1px solid rgba(141, 78, 255, 0.25);
    padding: 2px 6px 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.tags-container .tag-remove {
    cursor: pointer;
    font-weight: bold;
    color: #ff4e88;
    padding: 0 2px;
    border-radius: 50%;
}

.tags-container .tag-remove:hover {
    background: rgba(255, 78, 136, 0.2);
}

.custom-multiselect .arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.custom-multiselect.active .arrow {
    transform: rotate(180deg);
}

/* Dropdown Content */
.custom-multiselect .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: rgba(16, 16, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(16px);
    padding: 12px;
}

.custom-multiselect.active .dropdown-content {
    display: block;
}

.custom-multiselect .search-box {
    margin-bottom: 10px;
}

.custom-multiselect .search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}

.custom-multiselect .search-box input:focus {
    border-color: var(--accent-purple);
}

.custom-multiselect .helpers {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.custom-multiselect .helpers button {
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-teal);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
}

.custom-multiselect .helpers button:hover {
    color: #fff;
}

.custom-multiselect .options-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Scrollbar styles for option lists */
.options-list::-webkit-scrollbar {
    width: 4px;
}
.options-list::-webkit-scrollbar-track {
    background: transparent;
}
.options-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.options-list .option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
    transition: background 0.15s ease;
}

.options-list .option-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.options-list .option-item input[type="checkbox"] {
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.options-list .option-item.selected {
    background: rgba(141, 78, 255, 0.08);
}

.options-list .no-results {
    color: var(--text-muted);
    font-size: 12px;
    padding: 10px;
    text-align: center;
}

/* Action button area inside general filter */
.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

/* Base Button Styling */
.btn {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.btn-primary {
    background: var(--accent-purple);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(141, 78, 255, 0.2);
}
.btn-primary:hover {
    background: #9d62ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 78, 255, 0.35);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.05);
}
.btn-secondary:active {
    transform: translateY(0);
}

/* Single Select Mode Override (for comparison dropdowns) */
.custom-multiselect.single-select .options-list .option-item {
    padding-left: 12px;
}
.custom-multiselect.single-select .tags-container .tag {
    background: rgba(0, 229, 188, 0.1);
    color: #9cffe7;
    border: 1px solid rgba(0, 229, 188, 0.2);
}

/* Comparison Selector Layout */
.comparison-selectors {
    position: relative;
    z-index: 50;
    margin-bottom: 32px;
    padding: 24px !important;
}

.selectors-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.selectors-grid .filter-group {
    flex: 1;
}

.vs-divider {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 15px rgba(141, 78, 255, 0.3);
    margin-top: 20px;
}

/* Comparison Placeholder Card */
.placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px !important;
    text-align: center;
    gap: 16px;
}

.compare-big-icon {
    font-size: 64px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.placeholder-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
}

.placeholder-card p {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 14px;
}

/* Comparison Metadata Side-by-side Cards */
.compare-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .compare-meta-row {
        grid-template-columns: 1fr;
    }
}

.compare-meta-card {
    padding: 24px;
    transition: all 0.3s ease;
}

.compare-meta-card.border-a {
    border-left: 4px solid var(--accent-purple);
}
.compare-meta-card.border-b {
    border-left: 4px solid var(--accent-teal);
}

.meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge-a {
    background: rgba(141, 78, 255, 0.1) !important;
    color: #c4adff !important;
    border: 1px solid rgba(141, 78, 255, 0.2) !important;
}

.badge-b {
    background: rgba(0, 229, 188, 0.1) !important;
    color: #9cffe7 !important;
    border: 1px solid rgba(0, 229, 188, 0.2) !important;
}

.location-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.compare-meta-card h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
}

.comp-meta-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
}

.comp-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comp-stat-item .stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-stat-item .stat-val {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

/* Compare Courses Grid lists */
.compare-courses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.ies-courses-col {
    display: flex;
    flex-direction: column;
}

.ies-courses-col h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.ies-title-col-a { color: #c4adff; }
.ies-title-col-b { color: #9cffe7; }

.border-left {
    border-left: 1px solid var(--border-color);
    padding-left: 24px;
}

.courses-rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.courses-rank-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
}

.courses-rank-list li .course-name {
    font-weight: 500;
    max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.courses-rank-list li .course-val {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ========================================================================= */
/* Rest of general dashboard styles compiled from original style.css */
/* ========================================================================= */

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(141, 78, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-purple);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-container p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), 0 0 15px var(--accent-purple-glow);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.icon-enrollment {
    background: linear-gradient(135deg, rgba(141, 78, 255, 0.2), rgba(141, 78, 255, 0.05));
    border: 1px solid rgba(141, 78, 255, 0.3);
    position: relative;
}
.icon-enrollment::after {
    content: "🎓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.icon-ies {
    background: linear-gradient(135deg, rgba(0, 229, 188, 0.2), rgba(0, 229, 188, 0.05));
    border: 1px solid rgba(0, 229, 188, 0.3);
    position: relative;
}
.icon-ies::after {
    content: "🏫";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.icon-courses {
    background: linear-gradient(135deg, rgba(255, 78, 136, 0.2), rgba(255, 78, 136, 0.05));
    border: 1px solid rgba(255, 78, 136, 0.3);
    position: relative;
}
.icon-courses::after {
    content: "📚";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.icon-growth {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    position: relative;
}
.icon-growth::after {
    content: "📈";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-info h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.kpi-trend {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.trend-value {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.trend-value.up {
    color: var(--success);
}
.trend-value.down {
    color: var(--danger);
}

.trend-label {
    color: var(--text-muted);
}

.highlight-card {
    background: linear-gradient(135deg, rgba(22, 22, 38, 0.8) 0%, rgba(141, 78, 255, 0.08) 100%);
    border: 1px solid rgba(141, 78, 255, 0.2);
}

.trend-value.highlight {
    color: var(--accent-teal);
    font-size: 13px;
    text-shadow: 0 0 10px rgba(0, 229, 188, 0.2);
}
.trend-value.highlight.positive {
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.trend-value.highlight.negative {
    color: var(--danger);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Charts and Glass Card styles */
.charts-row, .details-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .charts-row, .details-row {
        grid-template-columns: 1fr;
    }
}

.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-tag {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 99px;
    color: var(--text-secondary);
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

/* Tab Selectors */
.tab-selectors {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* Tables style */
.table-container {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

th {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.text-right {
    text-align: right;
}

.ies-sigla-badge {
    background: rgba(141, 78, 255, 0.1);
    color: #b084ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 11px;
    border: 1px solid rgba(141, 78, 255, 0.2);
}

.growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-heading);
}

.growth-badge.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.growth-badge.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.growth-badge.neutral {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Modal Dialog Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 8, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    width: 90%;
    max-width: 800px;
    padding: 32px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    outline: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #ff4e88;
}

.modal-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.modal-summary .total-label {
    color: var(--text-secondary);
}

.modal-summary .total-label strong {
    color: var(--accent-teal);
    font-size: 15px;
    margin-left: 4px;
}

/* Make table rows clickable */
.maringa-goals-row-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.maringa-goals-row-clickable:hover td {
    background: rgba(141, 78, 255, 0.05) !important;
}

.maringa-goals-row-clickable.expanded td {
    background: rgba(141, 78, 255, 0.08) !important;
    border-bottom-color: transparent !important;
}

/* Course Chips for MT View */
.course-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(141, 78, 255, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(141, 78, 255, 0.25);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.course-chip:hover {
    background: rgba(141, 78, 255, 0.25);
    transform: translateY(-1px);
}

/* Segment Control / Toggle Buttons */
.segment-control {
    display: inline-flex;
    background: rgba(16, 16, 28, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}

.segment-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.segment-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.segment-btn.active {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 2px 10px rgba(141, 78, 255, 0.4);
}


