/* ===============================
   RISK REPORT PAGE - PREMIUM 3D EFFECTS
   =============================== */

/* Report Header */
.report-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2.5px solid var(--card-border);
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

.report-header::after {
    content: '';
    position: absolute;
    bottom: -2.5px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.report-header h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 900;
}

.report-date {
    color: var(--text-color);
    font-size: 0.95rem;
    animation: slideInUp 0.8s ease-out 0.1s both;
}

/* ===============================
   DISEASE CARD STYLES - PREMIUM 3D
   =============================== */

.disease-card {
    border: 1.5px solid var(--card-border);
    border-radius: 1.35rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255,255,255,0.2) 100%);
    backdrop-filter: blur(12px);
    overflow: hidden;
    animation: slideInUp 0.7s ease-out backwards;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateZ(0) rotateX(0deg);
    perspective: 1200px;
}

.disease-card:nth-child(1) { animation-delay: 0.15s; }
.disease-card:nth-child(2) { animation-delay: 0.25s; }
.disease-card:nth-child(3) { animation-delay: 0.35s; }
.disease-card:nth-child(4) { animation-delay: 0.45s; }
.disease-card:nth-child(5) { animation-delay: 0.55s; }

.disease-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.04;
    border-radius: 50%;
    transition: all 0.8s ease;
    transform: translateZ(-30px);
    z-index: 0;
}

.disease-card:hover::before {
    opacity: 0.1;
    transform: translate(30px, 30px) translateZ(-10px);
}

.disease-card:hover {
    transform: translateY(-10px) translateZ(25px) rotateX(3deg);
    box-shadow: 0 25px 70px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.8);
    border-color: rgba(59, 130, 246, 0.4);
}

.disease-card .card-header-strip {
    height: 10px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.disease-card.low .card-header-strip {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.disease-card.medium .card-header-strip {
    background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.disease-card.high .card-header-strip {
    background: linear-gradient(90deg, #ef4444 0%, #fca5a5 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.disease-card.very-high .card-header-strip {
    background: linear-gradient(90deg, #dc2626 0%, #fecaca 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.disease-card:hover .card-header-strip {
    height: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===============================
   PROGRESS BAR STYLES - PREMIUM 3D
   =============================== */

.progress-custom {
    height: 14px;
    background: linear-gradient(90deg, var(--light-color) 0%, rgba(0,0,0,0.05) 100%);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    transform: translateZ(0);
}

.progress-bar {
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 9999px;
    animation: slideInRight 1.5s ease-in-out infinite;
}

/* ===============================
   STAT CARD STYLES - GLASSMORPHISM
   =============================== */

.stat-card {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255,255,255,0.5) 100%);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    animation: slideInUp 0.6s ease-out backwards;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.stat-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ===============================
   OVERALL SCORE DISPLAY - 3D
   =============================== */

.overall-score-display {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) var(--score-percent), var(--light-color) 0);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);\n    animation: spinIn 0.8s ease-out;
}

.overall-score-inner {
    width: 155px;
    height: 155px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--body-bg) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes spinIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotateZ(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateZ(0);
    }
}

/* ===============================
   OVERALL RISK SCORE
   =============================== */

#overallScore {
    letter-spacing: -2px;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===============================
   RECOMMENDATIONS SECTION - ENHANCED
   =============================== */

.recommendations-section {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideInUp 0.8s ease-out;
}

.recommendations-section h4 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.recommendations-section i {
    margin-right: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
}

.recommendation-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--body-bg) 0%, var(--light-color) 100%);
    border-left: 5px solid var(--primary-color);
    border-radius: 0.75rem;
    transition: all 0.4s ease;
    animation: slideInUp 0.4s ease-out backwards;
}

.recommendation-item:nth-child(1) { animation-delay: 0.1s; }
.recommendation-item:nth-child(2) { animation-delay: 0.2s; }
.recommendation-item:nth-child(3) { animation-delay: 0.3s; }
.recommendation-item:nth-child(4) { animation-delay: 0.4s; }
.recommendation-item:nth-child(5) { animation-delay: 0.5s; }

.recommendation-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.recommendation-item p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* ===============================
   REPORT ACTIONS
   =============================== */

.report-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-actions .btn {
    flex: 1;
    min-width: 150px;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.4s ease;
}

.report-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.report-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

/* ===============================
   DARK MODE - PREMIUM COLORS
   =============================== */

[data-theme="dark"] .report-header {
    border-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .report-header h2 {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .report-date {
    color: rgba(232, 238, 247, 0.75);
}

[data-theme="dark"] .disease-card {
    background: linear-gradient(135deg, rgba(26, 40, 71, 0.6) 0%, rgba(20, 27, 47, 0.4) 100%);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .disease-card:hover {
    background: linear-gradient(135deg, rgba(26, 40, 71, 0.8) 0%, rgba(20, 27, 47, 0.6) 100%);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .disease-card h5 {
    color: #f0f5ff;
}

[data-theme="dark"] .disease-card .risk-value {
    color: #60a5fa;
}

[data-theme="dark"] .risk-meter {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .risk-meter .progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
}

/* ===============================
   PRINT STYLES
   =============================== */

@media print {
    .report-actions {
        display: none;
    }
    
    .disease-card {
        page-break-inside: avoid;
    }
}

