/* Fix overlapping/stacking of sections */
.content-section {
    position: relative;
    clear: both;
    z-index: 1;
    margin-top: 30px;
}

.content-card {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    padding: 20px;
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1900px;
    margin: 0 auto;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 255, 136, 0.15) 100%);
    border-radius: 20px;
    border: 3px solid #00d4ff;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.header h1 {
    font-size: 3em;
    color: #00d4ff;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.header .subtitle {
    font-size: 1.4em;
    color: #00ff88;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.1em;
    color: #ccc;
    position: relative;
    z-index: 1;
}

/* Navigation Buttons */
.nav-container {
    margin-bottom: 30px;
}

.nav-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 15px 35px;
    border: 2px solid #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.nav-btn.active {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0f0f1e;
    border-color: #00ff88;
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.nav-btn .icon {
    font-size: 1.3em;
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
.section-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 255, 136, 0.2) 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid #00ff88;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

.section-header h2 {
    font-size: 2em;
    color: #00d4ff;
    margin-bottom: 10px;
}

.section-header p {
    color: #ccc;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Executive Summary */
.executive-summary {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #00ff88;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.summary-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00ff88;
}

.summary-card h3 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.summary-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Content Cards */
.content-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow-x: auto;
}

.content-card:hover {
    border-color: #00ff88;
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.content-card h3 {
    color: #00ff88;
    font-size: 1.6em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card p {
    color: #ddd;
    line-height: 1.8;
    font-size: 1.05em;
    margin-bottom: 15px;
}

.content-card ul {
    list-style: none;
    padding-left: 0;
}

.content-card li {
    color: #ccc;
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.content-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
    font-size: 1.2em;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0f0f1e;
    padding: 18px;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
}

.comparison-table td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
}

.comparison-table tr:hover {
    background: rgba(0, 212, 255, 0.1);
}

.comparison-table .metric {
    font-weight: bold;
    color: #00d4ff;
}

.comparison-table .positive {
    color: #00ff88;
}

.comparison-table .baseline {
    color: #ff6b6b;
}

/* Technology Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.tech-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #00ff88;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateX(5px);
    border-left-color: #00d4ff;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.tech-card h4 {
    color: #00d4ff;
    font-size: 1.3em;
    margin-bottom: 12px;
}

.tech-card p {
    color: #ccc;
    line-height: 1.7;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.comparison-panel {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #00d4ff;
}

.comparison-panel h3 {
    color: #00d4ff;
    margin-bottom: 15px;
}

/* Controls Section */
.controls-section {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #00d4ff;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.control-group {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

.control-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #00d4ff;
    font-size: 0.9em;
}

.control-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #00d4ff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 255, 136, 0.15) 100%);
    color: white;
    font-size: 1em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.control-group select:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(0, 255, 136, 0.25) 100%);
    border-color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.control-group select option {
    background: #1a1a2e;
    color: white;
    padding: 10px;
    font-weight: bold;
}

.control-group input[type="range"] {
    width: 100%;
    padding: 0;
    height: 8px;
    background: linear-gradient(to right, #00d4ff 0%, #00ff88 100%);
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    border: none;
}

.slider-value {
    display: block;
    text-align: right;
    margin-top: 8px;
    color: #00ff88;
    font-weight: bold;
    font-size: 1.1em;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.metric-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 255, 136, 0.15) 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.metric-box:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.metric-box .label {
    color: #aaa;
    font-size: 0.95em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.metric-box .value {
    color: #00ff88;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.metric-box .unit {
    color: #00d4ff;
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

.metric-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.metric-label {
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: #00ff88;
    position: relative;
    z-index: 1;
}

.metric-change {
    font-size: 0.9em;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.metric-change.positive {
    color: #00ff88;
}

.metric-change.negative {
    color: #ff4444;
}

/* Impact Cards */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.impact-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.impact-card:hover {
    border-color: #00ff88;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.impact-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.impact-card .value {
    color: #00ff88;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.impact-card .label {
    color: #aaa;
    font-size: 0.95em;
}

/* Status Section */
.status-section {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    margin-bottom: 25px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.status-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #00ff88;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 15px #00ff88;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-led.standby {
    background: #FFB300;
    box-shadow: 0 0 15px #FFB300;
}

.status-text {
    flex: 1;
}

.status-name {
    font-weight: bold;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.status-value {
    font-size: 0.8em;
    color: #00ff88;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.chart-container {
    background: rgba(255, 255, 255, 0.08);
    padding: 22px;
    border-radius: 15px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 320px;
}

.chart-title {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #00d4ff;
    font-weight: bold;
}

/* Alert Boxes */
.alert-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #ffc107;
    margin: 20px 0;
}

.alert-box h4 {
    color: #ffc107;
    margin-bottom: 10px;
}

.alert-box p {
    color: #ddd;
    line-height: 1.6;
}

/* Success Box */
.success-box {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #00ff88;
    margin: 20px 0;
}

.success-box h4 {
    color: #00ff88;
    margin-bottom: 10px;
}

.success-box p {
    color: #ddd;
    line-height: 1.6;
}

/* Print Button */
.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 25px;
    background: #00ff88;
    color: #0f0f1e;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.print-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .nav-btn {
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        min-width: 400px;
        font-size: 0.95em;
    }

    .content-card {
        padding: 12px;
    }
}

/* Timeline Section Styles */
.timeline-section {
    max-width: 100%;
}

.timeline-header-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 255, 136, 0.08));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.timeline-header-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.timeline-header-content h2 {
    color: #00ff88;
    margin: 0 0 8px 0;
    font-size: 1.5em;
}

.timeline-header-content p {
    color: #aaa;
    margin: 0;
    font-size: 0.95em;
}

.timeline-slider-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 212, 255, 0.02));
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
}

.slider-left {
    flex: 1;
}

.slider-label {
    color: #00d4ff;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.timeline-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 136, 0.3));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.timeline-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.slider-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.85em;
    color: #666;
}

.slider-right {
    text-align: center;
    padding: 20px 40px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 136, 0.4);
    min-width: 140px;
}

.year-display {
    font-size: 2.5em;
    color: #00ff88;
    font-weight: bold;
}

.year-label {
    color: #aaa;
    font-size: 0.9em;
    margin-top: 5px;
}

.timeline-metrics-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 212, 255, 0.02));
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
}

.timeline-metrics-box h3 {
    color: #00d4ff;
    margin-bottom: 25px;
    font-size: 1.2em;
}

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

.timeline-metric-card {
    background: transparent;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.metric-label {
    color: #7dd3c0;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.metric-value {
    font-size: 2.2em;
    color: #00ff88;
    font-weight: bold;
    margin-bottom: 8px;
}

.metric-unit {
    color: #7dd3c0;
    font-size: 0.85em;
}

.timeline-charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.timeline-chart-container {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 212, 255, 0.02));
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.timeline-scenario-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 212, 255, 0.02));
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
}

.scenario-label {
    display: block;
    color: #00d4ff;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.timeline-scenario-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 212, 255, 0.05);
    color: #00d4ff;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-scenario-select:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.timeline-scenario-select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.timeline-scenario-select option {
    background: #0f1419;
    color: #00d4ff;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .print-btn,
    .nav-container {
        display: none;
    }
}