/* Base styles for Dark Command Center / Blueprint theme */
:root {
    --primary-color: #4CAF50; /* Green for success/CIA */
    --accent-color: #FF9800;  /* Orange/Gold for focus/warning */
    --background-color: #121212; /* Deep Black/Gray */
    --vis-bg-color: #1e1e1e; /* Darker background for vis blocks */
    --text-color: #f0f0f0; /* Light text for readability */
    --sub-text-color: #aaaaaa;
    --card-bg: #222222; /* Darker card background */
    --shadow: 0 5px 20px rgba(0,0,0,0.4);
}

body {
    font-family: 'Consolas', 'Courier New', monospace; /* Monospace font for theme */
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    position: relative;
}

/* Video Background Styles */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.4; /* Adjust opacity to keep content readable */
}

/* Dark overlay to ensure text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.7); /* Semi-transparent overlay */
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px; /* Increased width */
    margin: 0 auto;
    padding: 20px 20px;
    text-align: center;
}

h1 {
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 800;
}

h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
    font-weight: 400;
}

.subtitle {
    color: var(--sub-text-color);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.vis-section {
    background: var(--vis-bg-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 0 auto 80px;  /* center */
    text-align: left;
    border: 1px solid #333; /* Subtle border */
    max-width: 1200px;
}

/* --- Quiz Block Styles --- */
.quiz-block {
    text-align: center;
    padding: 30px;
    background: #333333; /* Darker quiz background */
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
}

.quiz-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.mcq-option {
    display: block;
    background: #444444;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 15px;
    margin: 12px auto;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 700px;
    text-align: left;
    font-size: 1em;
    color: var(--text-color);
}

.mcq-option:hover {
    background: #555555;
    border-color: var(--primary-color);
}

.mcq-option.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
    background: #403010; /* Dark gold tint */
}

#feedback-box {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-weight: 600;
}

.feedback-correct {
    background: #103010;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.feedback-incorrect {
    background: #401010;
    color: #f44336;
    border: 1px solid #f44336;
}

.continue-btn {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.continue-btn:hover {
    background: #388e3c;
    transform: translateY(-1px);
}

.hidden {
    display: none;
}

/* --- Visualization Block Styles --- */
#map-vis, #dashboard-vis, #flows-vis, #orbit-vis {
    margin-top: 30px;
    text-align: center;
}

#map svg, .plot svg, #chord svg, #bar svg, #orbit-chart {
    /* Blueprint/grid background for data */
    background: #282c34; 
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 1px solid #555;
}

#map {
    /* Setting a consistent size for the large map */
    max-width: 1000px;
    margin: 0 auto;
}

/* Dashboard Styles */
#dashboard-vis {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 35px; margin-bottom: 25px;
}
.plot svg { width: 500px; height: 400px; } /* Increased size for dashboard plots */

/* Flows Styles (Restored and Adjusted for Side-by-Side) */
#flows-viz-container {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 40px; 
    min-height: 500px; 
    flex-wrap: wrap;
    margin: 40px auto 0 auto; 
    max-width: 1200px;
}
.flow-vis-item { 
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically (useful if elements have different heights) */
    flex: 1 1 45%; /* Allow it to grow/shrink, aiming for 45% of the width */
    min-width: 300px; 
}




/* Story Block */
.story-block {
    background: #181818;
    color: var(--sub-text-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    border-left: 5px solid var(--accent-color);
}

.story-block h2 {
    color: var(--accent-color);
    border-bottom: none;
}

/* Intro/Detective Theme */
#intro-page {
    background: linear-gradient(135deg, #0f172a 0%, #0c1521 100%);
    color: #e5edf7;
    border: 1px solid #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    border-radius: 0;
    margin-bottom: 0;
}

#final-page {
    background: linear-gradient(135deg, #0f172a 0%, #0c1521 100%);
    color: #e5edf7;
    border: 1px solid #333;
    min-height: 100vh;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 20px;
    padding-top: 60px;
    border-radius: 0;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 9999;
}

#final-page.hidden {
    display: none !important;
}

#intro-page h1 {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
    margin-bottom: 15px;
}

#final-page h1 {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    margin-bottom: 15px;
    font-size: 42px;
}

.typewriter-box {
    border: 2px solid var(--primary-color);
    background: #1f2a3a;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 30px auto;
}

.typewriter-text {
    border-right: 2px solid var(--accent-color);
    color: #e5edf7;
    display: inline-block;
    font-size: 1.1em;
    line-height: 1.8;
}

#final-message p {
    margin: 15px 0;
}

#final-message .ranking-badge {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, rgba(255,152,0,0.2), rgba(76,175,80,0.2));
    border: 2px solid;
    border-radius: 12px;
    margin: 20px 0;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255,152,0,0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255,152,0,0.5), 0 0 60px rgba(76,175,80,0.3);
    }
}

.tooltip { /* General tooltip style */
    position: absolute;
    padding: 6px 10px;
    background: #282c34; /* Dark tooltip background */
    color: #f0f0f0; /* Light text */
    border: 1px solid #555;
    border-radius: 4px;
    pointer-events: none;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    z-index: 1000; /* Ensure tooltip is above all else */
}




/* Map */

.map-ui-top {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 10px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-title {
    font-size: 26px;
    color: #e7fbb7;
    font-weight: 700;
    margin: 0;
    padding-left: 4px;
    letter-spacing: 0.5px;
}

.map-filter-box {
    background: rgba(0, 0, 0, 0.55);
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.map-filter-box label {
    font-size: 14px;
    color: #e2e2e2;
}

.map-filter-box select {
    background: #0f172a;
    color: #e2e2e2;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 4px 6px;
    margin-top: 5px;
}

#region-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
    color: #222;
    font-weight: 500;
}


#map-fullscreen {
    position: relative;
    width: 100%;
    height: 520px;
    margin: 20px auto 10px auto;
    overflow: hidden;
    background: #10161d;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

#map svg {
    width: 100%;
    height: 100%;
    background: #16202a;
}


#map-info-panel,
#legend-section,
#growth-bloom-container {
    position: absolute;
    z-index: 15;
    backdrop-filter: blur(4px);
}

#map-info-panel {
    top: 15px;
    left: 15px;
    right: auto;
    width: 220px;
    background: rgba(0,0,0,0.60);
    padding: 12px;
    border-radius: 10px;
    color: #fafafa;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}


#legend-section {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}


#legend-canvas {
    border-radius: 4px;
}

#growth-bloom-container {
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.55);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    color: #e2e2e2;
}

#growth-bloom-container h3 {
    font-size: 14px;
    color: #f0f0f0;
}

#bloom-tooltip {
    position: absolute;
    padding: 6px 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    z-index: 999;
    display: none;
}


#floating-title,
#floating-filter {
    display: none !important;
}

/* --- Mission Briefing Styles --- */
.mission-briefing {
    background: linear-gradient(135deg, #1a2332 0%, #0f172a 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.mission-briefing p {
    color: var(--text-color);
    font-size: 1.05em;
    line-height: 1.7;
    margin: 10px 0;
}

.mission-briefing strong {
    color: var(--accent-color);
    font-size: 1.1em;
    font-weight: 900; /* Ensure maximum boldness for mission key terms */
}

/* New Rule: Ensure strong text in quiz questions is also very bold and highlighted */
.quiz-block strong {
    font-weight: 900;
    color: var(--accent-color);
}

/* --- Submit Report Button Styles --- */
.submit-report-btn {
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e68900 100%);
    color: var(--background-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.submit-report-btn:hover {
    background: linear-gradient(135deg, #e68900 0%, #cc7a00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 152, 0, 0.6);
}

.submit-report-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}


/* force galaxy */
.force-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.force-col {
    width: 50%;
}

@media (max-width: 1200px) {
    .force-row {
        flex-direction: column;
    }
    .force-col {
        width: 100%;
    }
}
.tip, .force-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.78);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

/* --- NEW MIGRATION FLIGHTS MAP STYLES --- */
#flightmap svg {
  /* This style overrides the generic map svg style to set a specific dark map bg for contrast */
  border-radius: 12px;
  background: #1e293b; /* Dark map background */
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.arc {
  fill: none;
  stroke-linecap: round;
  stroke-opacity: 0.55;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.2));
}

.plane {
  fill: #ffffff;
  opacity: 0.9;
}

#flight-info {
  /* Position and display controlled by JS, only colors/borders/fonts here */
  background: rgba(15,23,42,0.9);
  border: 1px solid #334155;
  color: #e2e8f0;
  backdrop-filter: blur(6px);
  z-index: 1000;
}
#flight-info h3 {
    color: #93c5fd;
    border-bottom: none; 
    padding-bottom: 0;
    margin-bottom: 10px;
}
.legend text {
  fill: #e2e8f0;
  font-size: 13px;
}

/* Flows Styles (Restored and Adjusted for Side-by-Side) */
#flows-viz-container {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 40px; 
    min-height: 500px; 
    flex-wrap: wrap;
    margin: 40px auto 0 auto; 
    max-width: 1200px;
}
.flow-vis-item { 
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically (useful if elements have different heights) */
    flex: 1 1 45%; /* Allow it to grow/shrink, aiming for 45% of the width */
    min-width: 300px; 
}



     /* Enhanced styles for Democracy Orbit visualization - Dark Spy/CIA Theme */
/* --- Visualization Block Styles --- */
#map-vis, #dashboard-vis, #flows-vis, #orbit-vis {
    margin-top: 30px;
    text-align: center;
}

#map svg, .plot svg, #chord svg, #bar svg, #orbit-chart {
    /* Blueprint/grid background for data */
    background: #282c34;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 1px solid #555;
}

#map {
    /* Setting a consistent size for the large map */
    max-width: 1000px;
    margin: 0 auto;
}
/* Orbit Styles */
#orbit-vis svg {
    max-width: 100%;
    height: 700px;
    box-shadow: none;
}
.orbit-controls {
    background: #333333;
    color: var(--text-color);
    border: 1px solid #555;
}
.view-toggle button { background: #555; color: var(--text-color); border: 1px solid #666; }
.view-toggle button.active { background: var(--primary-color); color: var(--background-color); border-color: var(--primary-color); }

/* Story Block */
.story-block {
    background: #181818;
    color: var(--sub-text-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    border-left: 5px solid var(--accent-color);
}

.story-block h2 {
    color: var(--accent-color);
    border-bottom: none;
}

#orbit-chart {
    /* Blueprint/grid background for data */
    background: #282c34;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 1px solid #555;
}

 .orbit-controls {
     background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
     padding: 15px;
     border-radius: 8px;
     margin-bottom: 20px;
     display: flex;
     align-items: center;
     gap: 15px;
     flex-wrap: wrap;
     border: 1px solid rgba(255,255,255,0.1);
     box-shadow: 0 4px 12px rgba(0,0,0,0.5);
 }

.orbit-controls label {
    color: #e5edf7;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group button {
    padding: 6px 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.05);
    color: #e5edf7;
    border: 1px solid rgba(255,152,0,0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.control-group button:hover {
    background: rgba(255,152,0,0.2);
    border-color: #ff9800;
}

#yearSlider {
    width: 300px;
    accent-color: #ff9800;
}

#yearDisplay {
    font-size: 1.3em;
    font-weight: bold;
    color: #ff9800;
    min-width: 60px;
    text-shadow: 0 0 10px rgba(255,152,0,0.5);
}

#orbit-chart {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    border: 2px solid rgba(255,152,0,0.3);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 30px rgba(255,152,0,0.1);
}

#orbit-vis {
    display: flex;
    justify-content: center;
    margin: 0 auto 20px;
    max-width: 1000px;   /* same as #map */
}

.axis-label {
    fill: #e5edf7;
    font-size: 13px;
    font-weight: 600;
}

.trail {
    fill: none;
    stroke-width: 1.5;
    opacity: 0.4;
    stroke-linecap: round;
}

.cluster {
    cursor: pointer;
    transition: all 0.3s;
    filter: drop-shadow(0 2px 8px rgba(255,152,0,0.3));
}

.cluster:hover {
    filter: drop-shadow(0 4px 12px rgba(255,152,0,0.6));
    stroke-width: 3 !important;
}

.cluster.expanded {
    opacity: 0.3;
}

.planet {
    cursor: pointer;
    transition: all 0.2s;
    filter: drop-shadow(0 1px 4px rgba(255,152,0,0.3));
}

.planet:hover {
    filter: drop-shadow(0 3px 10px rgba(255,152,0,0.6));
    stroke-width: 3 !important;
}

.orbit-legend-inline {
    flex: 1 1 100%;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,152,0,0.2);
}

.orbit-legend-inline .legend-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ff9800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.orbit-legend-inline .legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.orbit-legend-inline .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    border: 1px solid rgba(255,152,0,0.3);
    cursor: pointer;
    transition: all 0.3s;
    color: #e5edf7;
    font-size: 13px;
}

.orbit-legend-inline .legend-item:hover {
    background: rgba(255,152,0,0.1);
    border-color: #ff9800;
    transform: translateY(-2px);
}

.orbit-legend-inline .legend-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,152,0,0.5);
    box-shadow: 0 0 8px rgba(255,152,0,0.3);
}


.view-toggle {
    background: rgba(0,0,0,0.3);
    padding: 5px;
    border-radius: 8px;
    display: flex;
    gap: 5px;
    border: 1px solid rgba(255,152,0,0.2);
}

.view-toggle button {
    padding: 5px 10px;
    font-size: 12px;
    background: rgba(255,255,255,0.05);
    color: #e5edf7;
    border: 1px solid rgba(255,152,0,0.3);
}

.view-toggle button.active {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #0f0f1e;
    border-color: #ff9800;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255,152,0,0.5);
}

.tracking-panel {
    position: fixed;
    right: 20px;
    top: 100px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: #e5edf7;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.8), 0 0 40px rgba(255,152,0,0.2);
    max-width: 280px;
    display: none;
    border: 2px solid rgba(255,152,0,0.5);
    z-index: 1000;
}

.tracking-panel.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.tracking-panel h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    border-bottom: 2px solid rgba(255,152,0,0.5);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff9800;
    text-shadow: 0 0 10px rgba(255,152,0,0.5);
}

.tracking-panel .tracking-icon {
    font-size: 20px;
}

.tracking-panel .stat {
    margin: 10px 0;
    font-size: 14px;
    background: rgba(255,152,0,0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,152,0,0.3);
}

.tracking-panel .stat-label {
    font-weight: 600;
    opacity: 0.8;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #bbb;
}

.tracking-panel .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #ff9800;
}

.tracking-panel .clear-track {
    margin-top: 15px;
    width: 100%;
    background: rgba(255,152,0,0.2);
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255,152,0,0.5);
    color: #ff9800;
    font-weight: bold;
}

.tracking-panel .clear-track:hover {
    background: rgba(255,152,0,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,152,0,0.3);
}

.gdp-democracy-panel {
    display: none;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px auto;      /* center horizontally */
    border: 1px solid rgba(255,152,0,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    max-width: 1000px;      /* same cap as Orbit/map */
}

.gdp-democracy-panel.active { display: block; }

.gdp-democracy-panel h3 {
    margin-top: 0;
    color: #ff9800;
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255,152,0,0.3);
}

.search-container {
    position: relative;
    display: inline-block;
}

#trackingSearch {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid rgba(255,152,0,0.3);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: rgba(0,0,0,0.3);
    color: #e5edf7;
}

#trackingSearch::placeholder {
    color: #bbb;
}

#trackingSearch:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 15px rgba(255,152,0,0.3);
    background: rgba(0,0,0,0.5);
}

.planet.tracked, .cluster.tracked {
    stroke: #4CAF50 !important;
    stroke-width: 4 !important;
    filter: drop-shadow(0 0 15px #4CAF50) drop-shadow(0 0 8px #4CAF50);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        stroke-width: 4;
        opacity: 1;
        filter: drop-shadow(0 0 15px #4CAF50) drop-shadow(0 0 8px #4CAF50);
    }
    50% {
        stroke-width: 5;
        opacity: 0.9;
        filter: drop-shadow(0 0 25px #4CAF50) drop-shadow(0 0 12px #4CAF50);
    }
}

.trail.tracked {
    stroke-width: 3 !important;
    opacity: 0.8 !important;
    stroke: #4CAF50 !important;
}

.autocomplete-suggestions {
    position: absolute;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border: 2px solid #ff9800;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 20px rgba(255,152,0,0.2);
    z-index: 1000;
    width: 224px;
    display: none;
}

.autocomplete-suggestions.active { display: block; }

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,152,0,0.2);
    color: #e5edf7;
}

.suggestion-item:hover {
    background: rgba(255,152,0,0.2);
}

.suggestion-item .name {
    font-weight: 600;
    color: #ff9800;
}

.suggestion-item .type {
    font-size: 12px;
    color: #bbb;
    margin-left: 8px;
}

/* Dropdown/Select Styling - CIA Command Center Theme */
select {
    padding: 10px 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: #e5edf7;
    border: 2px solid rgba(255, 152, 0, 0.4);
    border-radius: 8px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 152, 0, 0.1);
    outline: none;
    min-width: 200px;
    height: 42px;
    line-height: 1.4;
}

select:hover {
    border-color: #ff9800;
    background: linear-gradient(135deg, #252541 0%, #1a1a2e 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 152, 0, 0.2);
    transform: translateY(-1px);
}

select:focus {
    border-color: #ff9800;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.6);
}

select option {
    background: #1a1a2e;
    color: #e5edf7;
    padding: 10px;
    font-weight: 600;
}

select option:hover {
    background: rgba(255, 152, 0, 0.2);
}

/* Controls container styling */
#controls, .controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 152, 0, 0.2);
    margin-bottom: 20px;
}

#controls label, .controls label {
    color: #ff9800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
    margin: 0;
    line-height: 1;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Fix any pseudo-elements or default styling */
.controls::before,
.controls::after,
#controls::before,
#controls::after {
    display: none !important;
}

/* Ensure button alignment in controls */
.controls .continue-btn,
#controls .continue-btn {
    margin: 0;
    flex-shrink: 0;
    padding: 10px 20px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Specific styling for cluster button */
#clusterToggle {
    white-space: nowrap;
}
