/* ============================================================
   PPM — Soal Page CSS
   ============================================================ */

/* PAGE HERO */
.page-hero {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem) !important;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(99,102,241,.2) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(245,158,11,.15) 0%, transparent 45%),
        linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%) !important;
    border-bottom: none !important;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff !important; font-size: clamp(1.9rem, 4vw, 3rem) !important; font-weight: 800 !important; letter-spacing: -.035em !important; }
.page-hero p { color: rgba(255,255,255,.75) !important; font-size: 1.05rem !important; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.4); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7) !important; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.5) !important; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4) !important; }

/* FILTER BAR */
.filter-bar {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.06) !important;
}
.filter-bar .form-control {
    border-radius: 10px !important; border-color: #e2e8f0 !important;
    padding: .65rem 1rem !important; font-size: .9rem !important;
    background: #f8fafc !important; box-shadow: none !important;
}
.filter-bar .form-control:focus {
    border-color: #6366f1 !important; background: #fff !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12) !important;
}
.filter-bar .btn-primary { border-radius: 10px !important; font-weight: 600 !important; }

/* ALERT LOGIN */
.alert-info {
    background: linear-gradient(135deg, #eef2ff, #f0f9ff) !important;
    border-left: 4px solid #6366f1 !important;
    border-radius: 12px !important;
    color: #3730a3 !important;
}

/* SOAL CARD */
@keyframes soalGlow {
    0%, 100% { box-shadow: 0 2px 12px rgba(15,23,42,.06), 0 0 0 0 rgba(99,102,241,0); }
    50%       { box-shadow: 0 2px 12px rgba(15,23,42,.06), 0 0 18px 4px rgba(99,102,241,.16); }
}
.soal-card {
    border: 1px solid #e8ecf4 !important;
    border-left: 4px solid #4f46e5 !important;
    border-radius: 20px !important;
    background: #fff !important;
    animation: soalGlow 3s ease-in-out infinite !important;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1) !important;
}
.soal-card:hover {
    transform: translateY(-6px) !important;
    animation: none !important;
    box-shadow: 0 20px 48px rgba(79,70,229,.18), 0 0 0 2px rgba(99,102,241,.2) !important;
}
.soal-card .card-body { padding: 1.5rem !important; }
.soal-card .card-title { font-size: 1rem !important; font-weight: 700 !important; color: #0f172a !important; line-height: 1.45 !important; }
.soal-card .card-text { font-size: .875rem !important; color: #64748b !important; line-height: 1.7 !important; }

/* Badge nama lomba */
.soal-card .badge.bg-primary {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    font-size: .72rem !important; font-weight: 700 !important;
    padding: .3rem .75rem !important; border-radius: 999px !important;
    border: 1px solid #c7d2fe !important;
}
.soal-card .download-count {
    font-size: .75rem !important; color: #94a3b8 !important; font-weight: 500 !important;
}
.soal-card .meta-line { font-size: .8rem !important; color: #94a3b8 !important; }
.soal-card .meta-line i { color: #a5b4fc !important; }

/* SIDEBAR CARDS */
@keyframes sidebarGlow {
    0%, 100% { box-shadow: 0 2px 12px rgba(15,23,42,.06), 0 0 0 0 rgba(99,102,241,0); }
    50%       { box-shadow: 0 2px 12px rgba(15,23,42,.06), 0 0 14px 3px rgba(99,102,241,.12); }
}
.dashboard-card {
    border: 1px solid #e8ecf4 !important;
    border-radius: 20px !important;
    padding: 1.5rem !important;
    background: #fff !important;
    animation: sidebarGlow 4s ease-in-out infinite !important;
    margin-bottom: 1.25rem !important;
}
.dashboard-card-head {
    margin-bottom: 1rem !important;
    padding-bottom: .85rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.dashboard-card-head h2 { font-size: .9rem !important; font-weight: 700 !important; color: #0f172a !important; margin: 0 !important; }
.dashboard-card-head h2 i { color: #6366f1 !important; }

/* Sidebar filter links */
.d-grid.gap-2 a.bg-light {
    background: #f8fafc !important;
    border: 1px solid #e8ecf4 !important;
    border-radius: 12px !important;
    font-size: .85rem !important; font-weight: 500 !important;
    color: #334155 !important;
    padding: .6rem .9rem !important;
    transition: all .2s !important;
}
.d-grid.gap-2 a.bg-light:hover {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #4f46e5 !important;
    transform: translateX(3px) !important;
}
.d-grid.gap-2 a.bg-primary {
    background: linear-gradient(135deg, #4f46e5, #6d28d9) !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: .85rem !important; font-weight: 600 !important;
    color: #fff !important;
    padding: .6rem .9rem !important;
    box-shadow: 0 4px 12px rgba(79,70,229,.3) !important;
}
.d-grid.gap-2 a.text-muted {
    background: #f8fafc !important;
    border: 1px solid #e8ecf4 !important;
    border-radius: 12px !important;
    color: #94a3b8 !important;
    padding: .6rem .9rem !important;
    font-size: .85rem !important;
}

/* Badge soft */
.badge-soft { display: inline-flex !important; align-items: center !important; padding: .28rem .7rem !important; border-radius: 999px !important; font-size: .75rem !important; font-weight: 600 !important; text-decoration: none !important; }
.badge-soft-primary { background: #eef2ff !important; color: #4f46e5 !important; }
.badge-soft-secondary { background: #f1f5f9 !important; color: #475569 !important; transition: background .2s, color .2s !important; }
.badge-soft-secondary:hover { background: #e0e7ff !important; color: #4f46e5 !important; }

/* CTA Login card */
.auth-card-icon { font-size: 2.5rem; color: #6366f1; display: block; margin-bottom: .75rem; }
