/* Custom properties for AIBlend colors */
:root {
    --aiblend-blue: #6EC1E4;
    --aiblend-green: #A5D6A7;
    --dark-bg: #0A111F; 
    --neon-glow: 0 0 5px var(--aiblend-blue), 0 0 10px var(--aiblend-blue), 0 0 15px var(--aiblend-blue);
    --neon-glow-green: 0 0 5px var(--aiblend-green), 0 0 10px var(--aiblend-green), 0 0 15px var(--aiblend-green);
    --score-good: #4CAF50; 
    --score-mid: #FFC107; 
    --score-bad: #F44336; 
}

/* Global Styles and Font */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    color: var(--aiblend-blue);
    background-color: var(--dark-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Particle Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(90deg, #1f4287, var(--aiblend-blue), #1f4287);
    color: #0A111F;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 0 15px rgba(110, 193, 228, 0.7);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Header */
header {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    text-shadow: var(--neon-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.realtime-note {
    font-size: 0.8em;
    color: var(--aiblend-green);
    margin: -10px 0 0;
}

.logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px var(--aiblend-green));
}

h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 10px 0 0;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 0 30px 40px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.right-panel {
    min-width: 0;
}

/* Health Orb & Rings (no changes) */
.health-orb-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-orb {
    width: 150px;
    height: 150px;
    background-color: #0A111F;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 30px var(--aiblend-blue);
    transition: all 0.5s ease-in-out;
}

.health-orb.good { box-shadow: 0 0 30px var(--score-good); }
.health-orb.mid { box-shadow: 0 0 30px var(--score-mid); }
.health-orb.bad { box-shadow: 0 0 30px var(--score-bad); }

.orb-score {
    font-size: 3.5em;
    font-weight: 700;
    text-shadow: var(--neon-glow-green);
    color: var(--aiblend-green);
}

.orb-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -10px;
    color: var(--aiblend-blue);
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(110, 193, 228, 0.5);
    opacity: 0.8;
    animation: orb-spin 20s linear infinite;
    z-index: 5;
}

.orb-ring.one {
    width: 200px;
    height: 200px;
    box-shadow: 0 0 20px var(--aiblend-blue);
}
.orb-ring.two {
    width: 250px;
    height: 250px;
    border-color: rgba(165, 214, 167, 0.5);
    box-shadow: 0 0 20px var(--aiblend-green);
    animation-direction: reverse;
}

@keyframes orb-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mini Charts (ADJUSTED FOR SINGLE CHART) */
.mini-charts-container {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.chart-card {
    background-color: rgba(10, 17, 31, 0.6);
    padding: 10px;
    border: 1px solid rgba(110, 193, 228, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(110, 193, 228, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.large-chart-card {
    width: 90%; /* Make the single chart take up most of the space */
    max-width: 450px;
}

.chart-wrapper {
    width: 100%;
    height: 120px; /* Increased height for better visibility */
    margin-bottom: 5px;
}

.chart-card p {
    margin: 0;
    font-size: 0.8em;
    text-transform: uppercase;
    color: var(--aiblend-green);
}

/* Neon Button (no changes) */
.neon-button {
    background: none;
    color: var(--aiblend-blue);
    border: 2px solid var(--aiblend-blue);
    padding: 12px 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    text-shadow: var(--neon-glow);
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
}

.neon-button:hover:not(:disabled) {
    color: var(--dark-bg);
    background-color: var(--aiblend-blue);
    text-shadow: none;
    box-shadow: none;
    transform: scale(1.05);
}

.neon-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.hidden {
    display: none;
}

/* Stats Grid (Adjusted minmax for fewer stats) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: rgba(10, 17, 31, 0.7);
    border: 1px solid rgba(165, 214, 167, 0.3);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(165, 214, 167, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.stat-card.full-width {
    grid-column: 1 / -1;
}

.stat-label {
    font-size: 1em;
    font-weight: 400;
    color: var(--aiblend-blue);
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--aiblend-green);
    text-shadow: var(--neon-glow-green);
    margin-bottom: 10px;
}

.stat-value::after {
    content: attr(data-unit);
    font-size: 0.5em;
    font-weight: 400;
    margin-left: 5px;
    color: var(--aiblend-blue);
}

/* Neon Bar Animation (no changes) */
.neon-bar-container {
    height: 8px;
    background-color: rgba(10, 17, 31, 0.9);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(165, 214, 167, 0.1);
}

.neon-bar {
    height: 100%;
    width: 0%;
    background: var(--aiblend-green);
    transition: width 0.8s ease-out;
    box-shadow: 0 0 5px var(--aiblend-green), 0 0 10px var(--aiblend-green);
}

/* AI Suggestions Box & Pulse (no changes) */
.ai-suggestions-box {
    background-color: rgba(10, 17, 31, 0.95);
    border: 1px solid var(--aiblend-blue);
    padding: 15px;
    border-radius: 8px;
    min-height: 100px;
    font-size: 0.9em;
    line-height: 1.6;
    color: #f0f8ff; 
    box-shadow: 0 0 15px rgba(110, 193, 228, 0.4);
}

.ai-suggestions-box ul {
    list-style: none;
    padding: 0;
}

.ai-suggestions-box li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.ai-suggestions-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--aiblend-green);
    text-shadow: 0 0 5px var(--aiblend-green);
}

.ai-pulse {
    animation: pulse-glow 1.5s infinite alternate;
    display: inline-block;
}

@keyframes pulse-glow {
    from {
        text-shadow: 0 0 5px var(--aiblend-green), 0 0 10px var(--aiblend-green);
        transform: scale(1);
    }
    to {
        text-shadow: 0 0 10px var(--aiblend-blue), 0 0 20px var(--aiblend-green);
        transform: scale(1.05);
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
    }
    .large-chart-card {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .chart-wrapper {
        height: 80px;
    }
}