/* assets/css/pages/cvr-sim.css - CVR Simulator Styles */

:root {
    --cvr-dark: #0f172a;
    --cvr-panel-bg: rgba(30, 41, 59, 0.7);
    --cvr-primary: #3b82f6;
    --cvr-success: #10b981;
    --cvr-warning: #f59e0b;
    --cvr-border: rgba(255, 255, 255, 0.1);
    --cvr-text-main: #f8fafc;
    --cvr-text-muted: #94a3b8;
}

.cvr-page {
    background-color: var(--cvr-dark);
    background-image:
        radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.1), transparent 50%);
    min-height: 80vh;
    padding: 120px 0 80px 0;
    color: var(--cvr-text-main);
}

.cvr-header {
    margin-bottom: 50px;
}

.cvr-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cvr-title span {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cvr-desc {
    color: var(--cvr-text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* PANELS */
.cvr-panel {
    background: var(--cvr-panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid var(--cvr-border);
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* INPUTS */
.form-group {
    position: relative;
}

.cvr-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: #64748b;
    font-size: 1.1rem;
}

.cvr-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 16px 20px 16px 45px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cvr-input:focus {
    outline: none;
    border-color: var(--cvr-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.suffix {
    position: absolute;
    right: 20px;
    color: #94a3b8;
    font-weight: 600;
}

/* RANGE SLIDERS */
.cvr-range-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cvr-range {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #334155;
    outline: none;
}

.cvr-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border: 3px solid #64748b;
    transition: 0.2s;
}

.target-range::-webkit-slider-thumb {
    border-color: var(--cvr-primary);
}

.range-val {
    font-size: 1.25rem;
    font-weight: 800;
    min-width: 65px;
    text-align: right;
}

.cvr-help {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.85rem;
}

.cvr-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* RESULTS PANEL */
.metric-box {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.bg-dark {
    background: rgba(0, 0, 0, 0.4) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.15)) !important;
    border-color: rgba(59, 130, 246, 0.3);
}

.metric-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.metric-sub {
    font-size: 0.85rem;
    margin-top: 5px;
}

.impact-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px dashed rgba(16, 185, 129, 0.4);
    border-radius: 16px;
    padding: 25px;
}

.impact-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pulse-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: var(--cvr-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.impact-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.impact-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.yearly-amount {
    font-size: 1.5rem;
}

/* CHART */
.chart-container {
    height: 250px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
}

/* CTA MODULE */
.cvr-cta-module {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 35px 40px;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.cta-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin: 0;
}

.cta-btn {
    border-radius: 50px;
    padding: 14px 30px;
}

@media (max-width: 768px) {
    .cvr-page {
        padding: 140px 0 50px 0;
    }

    .cvr-title {
        font-size: 2.2rem;
    }

    .cvr-panel {
        padding: 25px;
    }

    .impact-amount {
        font-size: 2rem;
    }

    .pulse-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}