:root {
    --bg-dark: #050a16;
    --neon-cyan: #0df;
    --neon-blue: #3a86ff;
    --neon-orange: #fca311;
    --neon-green: #38b000;
    --glass-bg: rgba(16, 28, 56, 0.45);
    --glass-border: rgba(0, 221, 255, 0.3);
    --text-main: #e0f2fe;
    --text-muted: #7dd3fc;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at 50% 50%, #0a1128 0%, #03050a 100%);
}

.dashboard-container {
    width: 95%;
    max-width: 1200px;
    min-height: 90vh;
    height: auto;
    margin: 2vh 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* ==========================================
   USE CASE SELECTOR
   ========================================== */
.use-case-header {
    width: 95%;
    max-width: 1200px;
    margin: 2vh auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
    position: relative;
}

.use-case-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 221, 255, 0.5);
    font-size: 1.2rem;
}

.use-case-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.case-btn {
    background: rgba(16, 28, 56, 0.6);
    border: 1px solid rgba(0, 221, 255, 0.3);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.case-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 15px rgba(0, 221, 255, 0);
    transition: all 0.3s ease;
}

.case-btn:hover {
    border-color: var(--neon-cyan);
    color: #fff;
}

.case-btn:hover::before {
    box-shadow: inset 0 0 15px rgba(0, 221, 255, 0.3);
}

.case-btn.active {
    background: rgba(0, 221, 255, 0.2);
    border-color: var(--neon-cyan);
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0, 221, 255, 0.4), inset 0 0 10px rgba(0, 221, 255, 0.2);
}

/* Floating Top Stats */
.top-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: inset 0 0 15px rgba(0, 221, 255, 0.1), 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    transform: perspective(500px) rotateX(5deg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    background: rgba(0, 221, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 221, 255, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.stat-title {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: var(--neon-blue);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--neon-blue);
}

.progress-fill.cyan-fill {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.progress-glow {
    position: absolute;
    top: -2px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px 5px var(--neon-blue);
}

.progress-glow.cyan-glow {
    box-shadow: 0 0 15px 5px var(--neon-cyan);
}

.segmented-bar {
    display: flex;
    gap: 4px;
    height: 8px;
}

.segment {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
}

.segment.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}

.main-stat {
    transform: perspective(500px) rotateX(5deg) scale(1.05);
    z-index: 10;
}

/* HUD Circle */
.hud-circle {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 221, 255, 0.5);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 4s linear infinite;
}

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

/* Main Panel */
.main-glass-panel {
    background: linear-gradient(180deg, rgba(20, 35, 65, 0.8) 0%, rgba(10, 20, 45, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 40px rgba(0, 221, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.panel-metallic-header {
    height: 40px;
    background: linear-gradient(90deg, #4b5563, #9ca3af, #4b5563);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #111;
    font-weight: 700;
}

.panel-body {
    padding: 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.question-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.scenario {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 221, 255, 0.5);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.option-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: crosshair;
    transition: all 0.3s ease;
    position: relative;
}

.option-item:hover {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 15px rgba(0, 221, 255, 0.4);
}

.option-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.option-text {
    font-size: 1.2rem;
    flex: 1;
}

.option-item.selected {
    background: rgba(0, 221, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: inset 0 0 20px rgba(0, 221, 255, 0.2), 0 0 15px rgba(0, 221, 255, 0.3);
}

.option-glow-border {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--neon-cyan);
    pointer-events: none;
}

.option-item.selected .option-letter {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    font-weight: bold;
}

.option-item.selected .option-text {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.option-check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 221, 255, 0.5), inset 0 0 10px rgba(0, 221, 255, 0.5);
}

/* Panel Footer */
.panel-footer {
    margin-top: auto;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.footer-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1;
    position: relative;
}

.footer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.footer-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D Pillars */
.bars-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-pillar {
    width: 20px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(200px) rotateX(10deg);
}

.pillar-3d {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 1px solid;
    background: rgba(255,255,255,0.1);
}

.pillar-3d::after {
    content: '';
    position: absolute;
    top: -5px; left: 0;
    width: 100%; height: 10px;
    border: 1px solid inherit;
    border-bottom: none;
    transform: rotateX(70deg);
    transform-origin: top;
}

.blue-pillar .pillar-3d { border-color: var(--neon-blue); box-shadow: inset 0 0 10px rgba(58, 134, 255, 0.5); }
.blue-pillar .pillar-3d::after { border-color: var(--neon-blue); background: rgba(58, 134, 255, 0.8); }

.green-pillar .pillar-3d { border-color: var(--neon-green); box-shadow: inset 0 0 10px rgba(56, 176, 0, 0.5); }
.green-pillar .pillar-3d::after { border-color: var(--neon-green); background: rgba(56, 176, 0, 0.8); }

.orange-pillar .pillar-3d { border-color: var(--neon-orange); box-shadow: inset 0 0 10px rgba(252, 163, 17, 0.5); }
.orange-pillar .pillar-3d::after { border-color: var(--neon-orange); background: rgba(252, 163, 17, 0.8); }

.team-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-name {
    font-size: 0.85rem;
    color: var(--text-main);
}

.mini-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.mini-bar {
    height: 100%;
    border-radius: 3px;
}

.blue-fill { background: var(--neon-blue); box-shadow: 0 0 8px var(--neon-blue); }
.green-fill { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.orange-fill { background: var(--neon-orange); box-shadow: 0 0 8px var(--neon-orange); }

/* Right Footer HUD */
.level-card h3 span {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.level-visuals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    height: 120px;
}

.hexagon-icon {
    width: 40px; height: 45px;
    background: rgba(255,255,255,0.05);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--text-muted);
}

.target-symbol {
    width: 20px; height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
}

.reactor-core {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 100px; height: 100px;
    border-top-color: var(--neon-blue);
    border-bottom-color: var(--neon-blue);
    animation: rotate 6s linear infinite;
}

.ring-2 {
    width: 80px; height: 80px;
    border-left-color: var(--neon-cyan);
    border-right-color: var(--neon-cyan);
    animation: rotate 4s linear infinite reverse;
}

.ring-3 {
    width: 60px; height: 60px;
    border: 2px dashed rgba(0, 221, 255, 0.5);
    animation: rotate 8s linear infinite;
}

.core-center {
    width: 40px; height: 40px;
    background: rgba(0, 221, 255, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.side-graph {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    position: relative;
}

.graph-bar {
    width: 8px;
    background: rgba(255,255,255,0.2);
}

.h-1 { height: 15px; }
.h-2 { height: 25px; }
.h-3 { height: 40px; background: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }

.graph-check {
    position: absolute;
    right: -25px;
    bottom: 5px;
    color: var(--neon-green);
    background: rgba(56, 176, 0, 0.2);
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(56, 176, 0, 0.5);
}

/* Bottom LED Base */
.panel-bottom-edge {
    height: 10px;
    background: rgba(255,255,255,0.1);
    position: relative;
}

.neon-line {
    position: absolute;
    bottom: -5px;
    left: 5%; width: 90%;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 2px;
    box-shadow: 0 0 20px 5px rgba(0, 221, 255, 0.6);
}

/* Background Particles (Optional Subtle Effect) */
.hologram-background {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    pointer-events: none;
    z-index: 0;
}
.particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.2;
}

/* ==========================================
   MATCHING & ORDERING QUIZ STYLES
   ========================================== */
.matching-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

.match-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 250px;
    max-width: 400px;
}

.match-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    user-select: none;
    font-size: 1.1rem;
}

.match-item:hover {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 10px rgba(0, 221, 255, 0.2);
}

.match-item.selected {
    border-color: var(--neon-cyan);
    background: rgba(0, 221, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 221, 255, 0.4);
    color: #fff;
}

.match-item.matched {
    border-color: var(--neon-green);
    background: rgba(56, 176, 0, 0.15);
    opacity: 0.6;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(56, 176, 0, 0.3);
}

.match-item.error {
    border-color: #ff3366;
    background: rgba(255, 51, 102, 0.1);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.ordering-container {
    width: 100%;
    max-width: 800px;
    margin: 1rem auto 0 auto;
}

.sortable-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sortable-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1.1rem;
}

.sortable-item:active {
    cursor: grabbing;
}

.sortable-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 221, 255, 0.2);
}

.sortable-handle {
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: grab;
}

.sortable-item:active .sortable-handle {
    cursor: grabbing;
}

.submit-btn {
    background: rgba(0, 221, 255, 0.05);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.75rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: block;
    margin: 2rem auto 0 auto;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
    font-weight: bold;
}

.submit-btn.hidden {
    display: none;
}

/* ==========================================
   GAMING ELEMENTS
   ========================================== */

.shoot-flash {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: white;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease-out;
}

.shoot-flash.flash-active {
    opacity: 0.8;
}

.result-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.result-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.result-content {
    text-align: center;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#result-text {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 20px currentColor;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
}

.result-success {
    color: var(--neon-green);
}

.result-error {
    color: #ff3366; /* neon red/pink */
}

.retry-btn {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 1rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.retry-btn.hidden {
    display: none;
}

/* ==========================================
   RESPONSIVE DESIGN 
   ========================================== */

@media (max-width: 900px) {
    .top-stats {
        flex-wrap: wrap;
    }
    .panel-footer {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        margin: 1rem 0;
        gap: 1rem;
    }
    
    .top-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stat-card {
        width: 100%;
        max-width: 350px;
    }

    .panel-metallic-header {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        text-align: center;
    }

    .panel-body {
        padding: 1.5rem 1rem;
    }
    
    .scenario {
        font-size: 1rem;
    }

    .question {
        font-size: 1.25rem;
    }

    .option-item {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .option-text {
        font-size: 1rem;
    }
    
    .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .option-check {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .level-card h3 {
        text-align: center !important;
    }

    .level-visuals {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        padding-top: 1rem;
    }
    
    .side-graph {
        margin-top: 1rem;
    }

    .match-column {
        min-width: 100%;
        max-width: none;
    }
    
    .match-item {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .sortable-item {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    .sortable-handle {
        font-size: 1.2rem;
    }
}
