/* Override warna Tailwind v4 untuk kompatibilitas html2canvas */
.bg-gray-950 {
    background-color: #030712 !important;
}

.bg-gray-900 {
    background-color: #111827 !important;
}

.bg-gray-800 {
    background-color: #1f2937 !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.text-white {
    color: #ffffff !important;
}

.text-black {
    color: #000000 !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-gray-300 {
    color: #d1d5db !important;
}

.text-gray-200 {
    color: #e5e7eb !important;
}

.text-emerald-400 {
    color: #34d399 !important;
}

.text-emerald-500 {
    color: #10b981 !important;
}

.text-emerald-600 {
    color: #059669 !important;
}

.text-blue-500 {
    color: #3b82f6 !important;
}

.text-amber-500 {
    color: #f59e0b !important;
}

.text-rose-500 {
    color: #f43f5e !important;
}

.text-red-600 {
    color: #dc2626 !important;
}

.text-green-600 {
    color: #16a34a !important;
}

.text-yellow-600 {
    color: #ca8a04 !important;
}

.border-gray-800 {
    border-color: #1f2937 !important;
}

.border-gray-200 {
    border-color: #e5e7eb !important;
}

.border-black {
    border-color: #000000 !important;
}

/* Assessment Charts */
#assessment-radar-chart,
#assessment-benchmark-chart,
#assessment-trend-chart {
    max-height: 100%;
    max-width: 100%;
}

/* Efek transisi untuk menu aktif */
#nav-athlete a, #nav-admin a {
    transition: all 0.2s ease;
}

#nav-athlete a.bg-emerald-500\/10, #nav-admin a.bg-emerald-500\/10 {
    border-left: 3px solid #10b981;
}

/* Efek hover yang lebih smooth */
#nav-athlete a:hover, #nav-admin a:hover {
    transform: translateX(4px);
}

/* Efek transisi untuk menu aktif */
#nav-athlete a, #nav-admin a {
    transition: all 0.2s ease;
}

/* Efek untuk menu aktif atlet */
#nav-athlete a.bg-emerald-500\/10, 
#nav-admin a.bg-emerald-500\/10 {
    border-left: 3px solid #10b981;
}

/* Efek untuk menu aktif admin */
#nav-admin a.bg-blue-500\/10 {
    border-left: 3px solid #3b82f6;
}

/* Efek hover yang lebih smooth */
#nav-athlete a:hover, #nav-admin a:hover {
    transform: translateX(4px);
}

/* ============================================
   HEADER JUDUL HALAMAN DENGAN BACKGROUND SOLID
   (Untuk background gambar putih)
   ============================================ */

/* Target semua header di dalam section-content */
.section-content > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 4px solid #10b981;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left-width: 4px;
}

/* Efek glow di sudut */
.section-content > div:first-child:not(.bg-gray-950):not(.grid)::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Judul utama (h2) */
.section-content > div:first-child:not(.bg-gray-950):not(.grid) h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subtitle (p) */
.section-content > div:first-child:not(.bg-gray-950):not(.grid) p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 4px 0 0 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Tombol yang ada di dalam header (jika ada) */
.section-content > div:first-child:not(.bg-gray-950):not(.grid) button,
.section-content > div:first-child:not(.bg-gray-950):not(.grid) .flex:last-child {
    position: relative;
    z-index: 1;
}

/* ============================================
   VARIASI WARNA PER HALAMAN
   ============================================ */

/* Training Plan - Biru */
#training-plan-view > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.88);
    border-left-color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
    border-left-width: 4px;
}
#training-plan-view > div:first-child:not(.bg-gray-950):not(.grid)::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

/* Weekly Training Load - Ungu */
#weekly-load-view > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.88);
    border-left-color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
    border-left-width: 4px;
}
#weekly-load-view > div:first-child:not(.bg-gray-950):not(.grid)::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

/* Reporting Training Plan - Cyan */
#reporting-training-view > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.88);
    border-left-color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.2);
    border-left-width: 4px;
}
#reporting-training-view > div:first-child:not(.bg-gray-950):not(.grid)::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
}

/* Reporting / Performance Test - Oranye */
#reporting-view > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.88);
    border-left-color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
    border-left-width: 4px;
}
#reporting-view > div:first-child:not(.bg-gray-950):not(.grid)::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

/* Assessment - Hijau (default) */
#assessment-view > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.88);
    border-left-color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
    border-left-width: 4px;
}
#assessment-view > div:first-child:not(.bg-gray-950):not(.grid)::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

/* Admin - Pink */
#admin-view > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.88);
    border-left-color: #ec4899;
    border-color: rgba(236, 72, 153, 0.2);
    border-left-width: 4px;
}
#admin-view > div:first-child:not(.bg-gray-950):not(.grid)::before {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
}

/* Exam Registration - Biru Muda */
#exam-reg-view > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.88);
    border-left-color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
    border-left-width: 4px;
}
#exam-reg-view > div:first-child:not(.bg-gray-950):not(.grid)::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

/* Exam Score - Amber */
#exam-score-view > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.88);
    border-left-color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
    border-left-width: 4px;
}
#exam-score-view > div:first-child:not(.bg-gray-950):not(.grid)::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

/* Exam Results - Emerald */
#exam-results-view > div:first-child:not(.bg-gray-950):not(.grid) {
    background: rgba(17, 24, 39, 0.88);
    border-left-color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
    border-left-width: 4px;
}
#exam-results-view > div:first-child:not(.bg-gray-950):not(.grid)::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

