/* === MODULE 4.3: OVR DYNAMICS === */

.ovr-dynamics-block {
    margin-top: 80px;
}

/* Card Container */
.ovr-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    max-width: 800px; /* Full width chart */
    margin: 0 auto;
}

/* Header */
.ovr-header {
    background: #0f172a;
    padding: 15px 25px;
    border-bottom: 1px solid #334155;
    display: flex; justify-content: space-between; align-items: flex-start;
}

.ovr-title-group {
    display: flex; gap: 12px;
}
.ovr-title-group .icon { 
    background: rgba(139, 92, 246, 0.15); color: #8b5cf6; /* Violet */
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.ovr-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ovr-sub { font-size: 0.75rem; color: #94a3b8; }

.ovr-ctrl { color: #64748b; font-size: 0.8rem; cursor: pointer; }

/* Chart Area */
.ovr-chart-container {
    padding: 25px;
    background: #1e293b;
    position: relative;
    height: 250px;
}

.ovr-svg {
    width: 100%; height: 100%;
    overflow: visible;
}

/* Chart Elements */
.g-line { stroke: #334155; stroke-width: 1; opacity: 0.3; }

.chart-area {
    fill: url(#purpleGradient);
    stroke: none;
}

.chart-line {
    fill: none;
    stroke: #8b5cf6; /* Violet Line */
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgba(139, 92, 246, 0.3));
}

.c-dot {
    fill: #1e293b; stroke: #8b5cf6; stroke-width: 2;
    transition: all 0.2s;
}
.c-dot:hover { r: 8; stroke: #fff; cursor: pointer; }

/* Alert Dot (The big drop) */
.c-dot.alert {
    stroke: #ef4444; fill: #1e293b;
    animation: blinkRed 2s infinite;
}

@keyframes blinkRed {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.5; }
}

/* Labels */
.x-lbl {
    font-size: 12px; fill: #64748b; font-weight: 500;
}
.x-lbl.active { fill: #fff; font-weight: 800; }

/* Footer */
.ovr-footer {
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 15px 25px;
    text-align: center;
}

.summary-label {
    font-size: 0.85rem; color: #94a3b8; margin-right: 8px;
}

.summary-val {
    font-size: 1rem; font-weight: 800;
}
.summary-val.negative { color: #ef4444; } /* Red for drop */
.summary-val.positive { color: #22c55e; }

/* Mobile */
@media (max-width: 600px) {
    .ovr-chart-container { padding: 10px; height: 180px; }
    .x-lbl { font-size: 10px; display: none; } /* Hide labels on very small screens or show every 2nd */
    .x-lbl:nth-child(odd) { display: block; }
}
/* === OVR DYNAMICS CSS UPDATES === */

.c-dot.dip {
    fill: #1e293b; stroke: #a855f7; /* Purple stroke for dips */
}

.c-dot.end {
    fill: #fff; stroke: #a855f7; stroke-width: 3;
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.6));
}

/* Positive Growth Value */
.summary-val.positive {
    color: #4ade80; /* Green */
    font-weight: 800;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Chart Line Styling */
.chart-line {
    stroke: #a855f7; /* Purple Line */
    stroke-width: 3;
    stroke-linejoin: round;
    fill: none;
}

.chart-area {
    fill: url(#purpleGradient);
}