/* SatFetch Premium SaaS Light-Mode Dashboard Styling */
:root {
    --bg-main: #f8fafc;        /* slate 50 */
    --bg-surface: #ffffff;     /* white */
    --border-color: #e2e8f0;   /* slate 200 */
    --border-hover: #cbd5e1;   /* slate 300 */
    --text-primary: #0f172a;    /* slate 900 */
    --text-secondary: #475569;  /* slate 600 */
    --text-muted: #94a3b8;      /* slate 400 */
    --primary-color: #2563eb;  /* blue 600 */
    --primary-hover: #1d4ed8;  /* blue 700 */
    --primary-glow: rgba(37, 99, 235, 0.15);
    
    --success: #10b981;        /* emerald 500 */
    --warning: #f59e0b;        /* amber 500 */
    --error: #ef4444;          /* red 500 */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Button & Card Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 8px;
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary-color);
    opacity: 0.8;
}

.roadmap-card::before {
    background: #10b981 !important;
}

.team-card::before {
    background: #2563eb !important;
}

/* ---------------------------------------------------------------------------
   STATE 1: LANDING PAGE
--------------------------------------------------------------------------- */
#landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.6s ease;
}

#landing-page.slide-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.orbit-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.orbit-ring {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 1.5;
    stroke-dasharray: 4 8;
}

.orbit-outer { animation: rotate-clockwise 40s linear infinite; }
.orbit-mid { animation: rotate-counter-clockwise 30s linear infinite; }
.orbit-inner { animation: rotate-clockwise 20s linear infinite; }

.earth-core {
    fill: #94a3b8;
    opacity: 0.25;
}

@keyframes rotate-clockwise {
    from { transform: rotate(0deg); transform-origin: center; }
    to { transform: rotate(360deg); transform-origin: center; }
}

@keyframes rotate-counter-clockwise {
    from { transform: rotate(360deg); transform-origin: center; }
    to { transform: rotate(0deg); transform-origin: center; }
}

.satellite {
    transform-box: fill-box;
    transform-origin: center;
}

.sat-a { animation: orbit-sat-a 25s linear infinite; }
.sat-b { animation: orbit-sat-b 18s linear infinite; }

.landing-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.landing-badge {
    display: inline-block;
    background-color: var(--primary-glow);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.landing-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4rem;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 4rem;
    text-align: left;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.feat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.375rem;
}

.feature-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ---------------------------------------------------------------------------
   STATE 2: MISSION TERMINAL PAGE
--------------------------------------------------------------------------- */
#terminal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.5s ease;
}

#terminal-page.active {
    opacity: 1;
    pointer-events: all;
}

/* Header Navigation */
.main-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    flex-shrink: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.isro-logo-placeholder {
    font-size: 1.75rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.header-text h2 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.header-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tab-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-tab {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

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

.nav-tab.active {
    color: var(--primary-color);
    background-color: var(--primary-glow);
    font-weight: 600;
}

/* Dashboard Layout */
.dashboard-body {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.tab-content {
    display: none;
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

#search-pane.active {
    display: flex !important;
    flex-direction: column;
}

#benchmarks-pane, #team-pane {
    overflow-y: auto;
    padding: 1.5rem;
}

.pane-layout {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Left Sidebar */
.sidebar {
    width: 380px;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
}

.panel-card {
    padding: 1.25rem;
    flex-shrink: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.panel-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-mode-selector {
    display: flex;
    background-color: var(--bg-main);
    padding: 0.25rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.mode-btn {
    flex: 1;
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.mode-btn.active {
    background-color: var(--bg-surface);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Upload Container */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-glow);
}

.drop-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.drop-text {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.drop-subtext {
    font-size: 0.6875rem;
    color: var(--text-muted);
    display: block;
}

.upload-preview {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    height: 180px;
    background-color: var(--bg-main);
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview-btn {
    position: absolute;
    top: 8px; right: 8px;
    background-color: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.remove-preview-btn:hover {
    background-color: rgba(239, 68, 68, 0.9);
}

.preview-meta {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background-color: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    font-family: var(--font-mono);
}

.text-query-container label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.text-query-container textarea {
    width: 100%;
    height: 100px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    resize: none;
    outline: none;
}

.text-query-container textarea:focus {
    border-color: var(--primary-color);
}

/* Inputs & Form Controls */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.375rem;
}

.input-group select, .coord-field input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    outline: none;
}

.input-group select:focus, .coord-field input:focus {
    border-color: var(--primary-color);
}

.coordinate-inputs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.coord-field {
    flex: 1;
}

.coord-field label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.375rem;
}

.slider-label-val {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.slider-label-val span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
}

/* Main Terminal Pane */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-card {
    height: 380px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.map-header, .results-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-header h3, .results-header h3 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
}

.map-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.map-body {
    flex-grow: 1;
    position: relative;
}

#map {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
}

/* Results Section */
.results-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.timing-feed {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.results-empty {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 3rem;
}

.results-empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
}

/* Result Card */
.result-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
}

.result-img-wrapper {
    height: 180px;
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.result-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-score-badge {
    position: absolute;
    top: 8px; right: 8px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.result-modality-tag {
    position: absolute;
    top: 8px; left: 8px;
    background-color: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.625rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.result-actions {
    position: absolute;
    bottom: 8px; right: 8px;
    display: flex;
    gap: 0.375rem;
}

.action-btn {
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    width: 28px; height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.result-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-meta-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-meta-title h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
}

.result-meta-rank {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.result-details span {
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Results Data Table */
.results-table-container {
    padding: 0 1.5rem 1.5rem 1.5rem;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.results-table th, .results-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-main);
}

.table-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.table-score {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--primary-color);
}

/* ---------------------------------------------------------------------------
   TAB 2: BENCHMARKS PANE
--------------------------------------------------------------------------- */
.benchmarks-card {
    padding: 2rem;
    max-width: 1280px;
    margin: 1rem auto;
}

.benchmarks-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.chart-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    height: 320px;
    background-color: var(--bg-surface);
}

.chart-container h3 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benchmarks-table-container h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benchmarks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    margin-bottom: 2rem;
}

.benchmarks-table th, .benchmarks-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.benchmarks-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    background-color: var(--bg-main);
}

.novelty-callout {
    background-color: var(--primary-glow);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
}

.callout-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   TAB 3: TEAM PANE
--------------------------------------------------------------------------- */
.team-card {
    padding: 2.5rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.team-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.team-hero h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.team-hero p {
    color: var(--text-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.member-card {
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background-color: var(--bg-surface);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
    border-color: var(--border-hover);
}

.member-avatar {
    width: 60px; height: 60px;
    background-color: var(--primary-glow);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.member-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.member-role {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.member-line {
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border-color);
    padding: 0.375rem 0;
}

.member-line:last-of-type {
    margin-bottom: 1rem;
}

.member-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.main-footer {
    height: 40px;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.footer-telemetry {
    display: flex;
    gap: 1.5rem;
}

.footer-telemetry span i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

/* ---------------------------------------------------------------------------
   MODAL FOR SPECTRAL PLOTS
--------------------------------------------------------------------------- */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--bg-surface);
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.modal-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-chart-container {
    height: 300px;
    width: 100%;
}

/* ---------------------------------------------------------------------------
   ROTATING BANNER BAR & CUSTOM BADGES FOR DASHBOARD REDESIGN
   --------------------------------------------------------------------------- */
.rotating-banner-bar {
    background-color: #f1f5f9; /* Slate 100 */
    border-bottom: 1px solid #e2e8f0; /* Slate 200 */
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155; /* Slate 700 */
    overflow: hidden;
    gap: 1rem;
    position: relative;
    z-index: 4;
}

.banner-label {
    color: #2563eb; /* Electric Blue */
    font-weight: 700;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.banner-messages-wrapper {
    position: relative;
    flex-grow: 1;
    height: 100%;
}

.banner-msg {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
    display: none;
}

.banner-msg.active {
    display: block;
    opacity: 1;
}

/* Badges for team panel */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.3px;
    line-height: 1;
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

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

.badge-info {
    background-color: rgba(6, 182, 212, 0.1);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-secondary {
    background-color: rgba(100, 116, 139, 0.1);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge-dark {
    background-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.2);
}
