/* ============================================================
   ADVANCED REPORTS — Premium Styles
   ============================================================ */

/* ---- Tab Bar ---- */
.rpt-tabs .nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rpt-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102,126,234,0.06);
}
.rpt-tabs .nav-link.active {
    color: #667eea;
    background: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 700;
}

/* ---- Cards ---- */
.rpt-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8edf4;
    box-shadow: 0 2px 12px rgba(15,32,58,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.rpt-card:hover { box-shadow: 0 6px 24px rgba(15,32,58,0.10); }

.rpt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    gap: 12px;
    flex-wrap: wrap;
}
.rpt-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
}
.rpt-card-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 3px 0 0;
}
.rpt-card-body { padding: 20px 22px; }

/* ---- Labels ---- */
.rpt-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

/* ---- KPI Strip ---- */
.rpt-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.rpt-kpi-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid #e8edf4;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rpt-kpi-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.rpt-kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 14px 14px 0 0;
}
.rpt-kpi-card.accent-blue::before  { background: linear-gradient(90deg,#667eea,#764ba2); }
.rpt-kpi-card.accent-green::before { background: linear-gradient(90deg,#10b981,#059669); }
.rpt-kpi-card.accent-amber::before { background: linear-gradient(90deg,#f59e0b,#d97706); }
.rpt-kpi-card.accent-red::before   { background: linear-gradient(90deg,#ef4444,#dc2626); }
.rpt-kpi-card.accent-purple::before{ background: linear-gradient(90deg,#8b5cf6,#7c3aed); }

.rpt-kpi-label { font-size: 0.78rem; color: #64748b; font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.rpt-kpi-value { font-size: 1.75rem; font-weight: 800; color: #1e293b; line-height: 1.1; }
.rpt-kpi-sub   { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }

/* ---- Tables ---- */
.rpt-table { font-size: 0.88rem; margin-bottom: 0; }
.rpt-table thead th {
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px 14px;
    white-space: nowrap;
}
.rpt-table tbody td { padding: 10px 14px; vertical-align: middle; border-color: #f1f5f9; }
.rpt-table tbody tr:hover { background: #f8fafc; }

/* ---- Rank Badge ---- */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}
.rank-badge.gold   { background: linear-gradient(135deg,#f59e0b,#d97706); box-shadow: 0 2px 8px rgba(245,158,11,0.5); }
.rank-badge.silver { background: linear-gradient(135deg,#94a3b8,#64748b); box-shadow: 0 2px 8px rgba(100,116,139,0.4); }
.rank-badge.bronze { background: linear-gradient(135deg,#b45309,#92400e); box-shadow: 0 2px 8px rgba(180,83,9,0.4); }
.rank-badge.normal { background: #e2e8f0; color: #475569; }

/* ---- Trend Pills ---- */
.trend-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.trend-pill.up   { background: rgba(16,185,129,0.12); color: #059669; }
.trend-pill.down { background: rgba(239,68,68,0.12);  color: #dc2626; }
.trend-pill.flat { background: rgba(100,116,139,0.12);color: #64748b; }

/* ---- Podium ---- */
.rpt-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg,#f8fafc,#f0f4ff);
    border-radius: 16px;
    border: 1px solid #e0e7ff;
}
.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.podium-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.podium-avatar.gold   { background: linear-gradient(135deg,#f59e0b,#d97706); width:80px; height:80px; font-size:1.8rem; }
.podium-avatar.silver { background: linear-gradient(135deg,#94a3b8,#64748b); }
.podium-avatar.bronze { background: linear-gradient(135deg,#b45309,#92400e); }

.podium-name  { font-weight: 700; color:#1e293b; font-size:0.88rem; text-align:center; max-width:100px; }
.podium-score { font-size:1rem; font-weight:800; color:#667eea; }
.podium-medal { font-size:1.5rem; }
.podium-block {
    padding: 10px 20px 0;
    border-radius: 10px 10px 0 0;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    color: #fff;
    min-width: 80px;
}
.podium-block.gold   { background:linear-gradient(135deg,#f59e0b,#d97706); height:60px; }
.podium-block.silver { background:linear-gradient(135deg,#94a3b8,#64748b); height:45px; }
.podium-block.bronze { background:linear-gradient(135deg,#b45309,#92400e); height:30px; }

/* ---- Empty State ---- */
.rpt-empty-state {
    text-align: center;
    padding: 64px 32px;
    color: #94a3b8;
}
.rpt-empty-state i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}
.rpt-empty-state h5 { color: #475569; font-weight: 700; margin-bottom: 8px; }
.rpt-empty-state p  { color: #94a3b8; font-size: 0.9rem; }

/* ---- Score Color Chips ---- */
.score-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
}
.score-chip.excellent { background:rgba(16,185,129,0.15); color:#059669; }
.score-chip.good      { background:rgba(59,130,246,0.15);  color:#2563eb; }
.score-chip.average   { background:rgba(245,158,11,0.15);  color:#d97706; }
.score-chip.poor      { background:rgba(239,68,68,0.15);   color:#dc2626; }
