@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --maroon-primary: #7A0C02;
    --maroon-dark: #4A0400;
    --maroon-light: #A81B0D;
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA8B2C;
    --neutral-light: #F8F9FA;
    --neutral-dark: #212529;
    --body-bg: #FAF6F0; /* Soft warm academic background */
    --card-shadow: 0 10px 30px rgba(74, 4, 0, 0.05);
    --gold-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--neutral-dark);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--maroon-dark);
}

/* Premium Navigation Header */
.navbar-custom {
    background-color: var(--maroon-primary);
    border-bottom: 4px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    color: white;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.navbar-custom .navbar-brand span {
    color: var(--gold-primary);
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--gold-primary);
    transform: translateY(-1px);
}

/* Main Buttons styling */
.btn-maroon {
    background-color: var(--maroon-primary);
    border: 2px solid var(--maroon-primary);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(122, 12, 2, 0.2);
}

.btn-maroon:hover {
    background-color: transparent;
    color: var(--maroon-primary);
    border-color: var(--maroon-primary);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    color: var(--maroon-dark);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--gold-shadow);
}

.btn-gold:hover {
    background-color: var(--maroon-primary);
    border-color: var(--maroon-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-maroon {
    background-color: transparent;
    border: 2px solid var(--maroon-primary);
    color: var(--maroon-primary);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-maroon:hover {
    background-color: var(--maroon-primary);
    color: white;
    transform: translateY(-2px);
}

/* Cards Design */
.card-premium {
    background: white;
    border: 1px solid rgba(214, 175, 55, 0.25);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 35px rgba(74, 4, 0, 0.08);
}

.card-premium .card-header-premium {
    background-color: var(--maroon-primary);
    border-bottom: 3px solid var(--gold-primary);
    color: white;
    padding: 20px;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-primary) 100%);
    color: white;
    padding: 80px 0;
    border-bottom: 5px solid var(--gold-primary);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Sidebar Navigation */
.sidebar-dashboard {
    background-color: var(--maroon-dark);
    border-right: 3px solid var(--gold-primary);
    min-height: 100vh;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-dashboard .sidebar-heading {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 800;
    text-align: center;
}

.sidebar-dashboard .sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-dashboard .sidebar-link i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
    color: var(--gold-primary);
}

.sidebar-dashboard .sidebar-link:hover,
.sidebar-dashboard .sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--gold-primary);
}

/* Timeline (Alur Pendaftaran) */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold-primary);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-badge {
    position: absolute;
    left: 0;
    top: 2px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--maroon-primary);
    border: 3px solid var(--gold-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(214, 175, 55, 0.15);
}

/* Custom badges */
.badge-status {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.badge-status.belum_lengkap {
    background-color: #FFF3CD;
    color: #856404;
}

.badge-status.menunggu_verifikasi {
    background-color: #CCE5FF;
    color: #004085;
}

.badge-status.revisi {
    background-color: #F8D7DA;
    color: #721C24;
}

.badge-status.disetujui {
    background-color: #D4EDDA;
    color: #155724;
}

/* Document status colors */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-badge.pending { background: #E2F0D9; color: #385723; }
.status-badge.diterima { background: #D4EDDA; color: #155724; }
.status-badge.ditolak { background: #F8D7DA; color: #721C24; }
.status-badge.waiting { background: #CCE5FF; color: #004085; }

/* Wizard multi-step form */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: #E0E0E0;
    z-index: 1;
}

.wizard-step.active:not(:last-child)::after,
.wizard-step.completed:not(:last-child)::after {
    background-color: var(--gold-primary);
}

.wizard-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #E0E0E0;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-icon {
    background-color: var(--maroon-primary);
    color: white;
    border-color: var(--gold-primary);
}

.wizard-step.completed .wizard-icon {
    background-color: var(--gold-primary);
    color: var(--maroon-dark);
    border-color: var(--gold-primary);
}

.wizard-label {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.wizard-step.active .wizard-label {
    color: var(--maroon-primary);
    font-weight: 700;
}

/* Footer Section */
.footer-custom {
    background-color: var(--maroon-dark);
    color: white;
    padding: 40px 0 20px 0;
    border-top: 4px solid var(--gold-primary);
}

.footer-custom a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: white;
}

/* QR Validasi Card Style */
.qr-valid-card {
    border: 4px solid var(--gold-primary);
    border-radius: 20px;
    background: white;
    box-shadow: 0 15px 50px rgba(74, 4, 0, 0.15);
    overflow: hidden;
}

.qr-valid-header {
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-primary) 100%);
    padding: 30px;
    color: white;
    text-align: center;
    border-bottom: 4px solid var(--gold-primary);
}
