.result-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.result-card:hover {
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.2);
}

.result-card-title {
    color: #22c55e !important;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.numeric-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.numeric-results .result-item {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #22c55e;
    border-right: 1px solid rgba(34, 197, 94, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.numeric-results .result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.numeric-results .result-item:hover::before {
    left: 100%;
}

.numeric-results .result-item:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.12));
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

.numeric-results .result-item .variable-name {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.numeric-results .result-item .predicted-value {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    font-family: 'Roboto Mono', monospace;
}

.numeric-results .result-item .uncertainty-range {
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    font-style: italic;
}

.numeric-results .result-item span {
    color: #ffffff !important;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: linear-gradient(145deg, rgba(10, 18, 32, 0.8), rgba(15, 23, 42, 0.8));
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

.chart-type-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.chart-type-selector h4 {
    width: 100%;
    text-align: center;
    color: #e5e7eb !important;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.chart-type-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    color: #e5e7eb !important;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-type-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.chart-type-btn.active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.output-checkboxes {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-wrapper:hover {
    transform: scale(1.1);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #22c55e;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-wrapper label {
    color: #e5e7eb !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.performance-box {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.08), rgba(22, 163, 74, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    color: #e5e7eb !important;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.performance-box h4 {
    color: #22c55e !important;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.performance-box p {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid #22c55e;
    transition: all 0.2s ease;
    color: #e5e7eb !important;
}

.performance-box p:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(4px);
}

.performance-box strong {
    color: #22c55e !important;
    font-weight: 700;
}

.chart-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: rgba(10, 18, 32, 0.98);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.chart-fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-fullscreen-title {
    color: #3b82f6 !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.chart-fullscreen-close {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.chart-fullscreen-close:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: scale(1.05);
}

.chart-fullscreen-container {
    flex: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.3);
    overflow: hidden;
}

.chart-fullscreen-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.zoom-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 100001;
}

.zoom-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.golden-point {
    animation: goldenPulse 2s ease-in-out infinite;
}

@keyframes goldenPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1));
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .chart-container {
        min-height: 400px;
        padding: 1rem;
    }

    .chart-type-selector {
        flex-direction: column;
    }

    .output-checkboxes {
        flex-direction: column;
        align-items: flex-start;
    }

    .numeric-results {
        grid-template-columns: 1fr;
    }

    .zoom-controls {
        bottom: 15px;
        right: 15px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .result-card {
        padding: 1.5rem;
    }

    .result-card-title {
        font-size: 1.1rem;
    }

    .chart-container {
        min-height: 350px;
    }
}