.report-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.report-header h2 {
    margin-bottom: 5px;
}

.mode-tag {
    font-weight: 600;
    font-size: 0.9rem;
}

.mode-tag.practice { color: #2563eb; }
.mode-tag.exam { color: #dc2626; }
.mode-tag.cat { color: #16a34a; }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.kpi-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.kpi-card span {
    font-size: 0.85rem;
    color: #6b7280;
}

.kpi-card strong {
    font-size: 1.6rem;
    display: block;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
}

.muted {
    color: #9ca3af;
    font-size: 0.9rem;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    background: #1e3a8a;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn.secondary {
    background: #f97316;
}

.btn.outline {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}
.alert-card { 
    border-left: 5px solid #dc2626; 
    background: #fff7f7; 
} 
.alert-card ul { 
    padding-left: 18px; 
    margin: 10px 0; 
} 
.alert-card li { 
    margin-bottom: 6px; 
} 
.btn.small { 
    padding: 8px 14px; 
    font-size: 0.9rem; 
}
.pass-predictor { 
    text-align: center; 
    background: #f0f9ff; 
    border: 1px solid #bae6fd; 
} 

.probability-text { 
    font-size: 0.95rem; 
    color: #065f46; 
}
.bar-background {
    width: 100%;
    height: 20px;
    background-color: #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #4caf50;
    width: 0;
    transition: width 0.5s ease-in-out;
}

/* -------- Dashboard Container -------- */
.dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* ===== Exam Tabs ===== */
.exam-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.exam-tab {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    background: #e5e7eb;
    color: #111827;
}
.exam-tab.active {
    background: #1e3a8a;
    color: white;
}

/* ===== KPI Grid ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.kpi {
    background: white;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    text-align: center;
}
.kpi span { font-size: 0.85rem; color: #6b7280; }
.kpi strong { font-size: 1.8rem; display: block; }

/* ===== Cards ===== */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    margin-bottom: 25px;
}
.card h3 { margin-bottom: 15px; }

/* ===== Lists ===== */
.row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}
.muted { color: #9ca3af; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    font-weight: 600;
}
.btn.secondary { background: #f97316; }
.btn.btn-warning { background: #facc15; color: #111; }

/* ===== Exam Readiness Card ===== */
.readiness-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 40px;
}
.readiness-card h2 { color: #1E3A8A; margin-bottom: 20px; }
.meter { position: relative; width: 180px; height: 180px; margin: 0 auto 10px; }
.meter svg { transform: rotate(-90deg); }
.meter circle { fill: none; stroke-width: 14; }
.meter .bg { stroke: #e5e7eb; }
.meter .progress {
    stroke: #22c55e;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}
.meter-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 700;
    color: #111827;
}
.readiness-label {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 20px;
}
.readiness-label.ready { color: #15803d; }
.readiness-label.nearly { color: #ca8a04; }
.readiness-label.not_ready { color: #b91c1c; }
.readiness-actions a { margin: 6px; }