/* Container Layout */
.predictor-wrapper {
    margin-left: 260px;
    padding: 80px 5%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Prediction Grid (The Selection Cards) */
.predictor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.disease-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.disease-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    background: rgba(56, 189, 248, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.disease-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
}

.disease-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #fff;
}

/* File Input Styling */
.disease-card input[type="file"] {
    width: 100%;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
    cursor: pointer;
}

.upload-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* --- Medical Report Bento Card --- */
.medical-report-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 60px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 35px;
}

.report-label {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Prediction Badges */
.prediction-badge {
    padding: 12px 25px;
    border-radius: 100px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.prediction-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.prediction-badge.safe {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Bento Grid */
.report-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.bento-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.box-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

/* Progress Bar */
.progress-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* Scan Preview */
.scan-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    cursor: zoom-in;
}

/* Advice Items */
.advice-title {
    margin-bottom: 25px;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.advice-item {
    background: rgba(56, 189, 248, 0.05);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    gap: 15px;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.step-num {
    background: var(--accent);
    color: #0f172a;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hidden { display: none !important; }

.loader-content { text-align: center; }

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(56, 189, 248, 0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1024px) {
    .report-grid { grid-template-columns: 1fr; }
    .predictor-wrapper { margin-left: 0; padding-top: 100px; }
}