/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }/**
 * ============================================
 * STYLE.CSS - CUSTOM STYLES PPDB
 * SMA ISLAM HIDAYATUL AHKAM
 * ============================================
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FFC107;
    --secondary-dark: #FF9800;
    --danger: #DC3545;
    --info: #17A2B8;
    --dark: #343A40;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F0F2F5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: #333;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTIC CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background: #f5f5f5;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending { background: #FFC107; color: #333; }
.badge-verifikasi { background: #17A2B8; color: white; }
.badge-diterima { background: #28A745; color: white; }
.badge-ditolak { background: #DC3545; color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(27,94,32,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-box {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PREDICTION CARD
   ============================================ */
.prediction-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
}

.prediction-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.prediction-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .prediction-number {
        font-size: 2rem;
    }
    
    .countdown-box {
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom th, 
    .table-custom td {
        padding: 8px 10px;
    }

    .page-hero {
        padding: 48px 16px 36px;
    }
    .page-hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    /* Tabel lebar: scroll horizontal, jangan pecah layout */
    .overflow-x-auto,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    canvas {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-box {
        padding: 8px 12px;
        min-width: 50px;
    }

    .page-hero {
        padding: 40px 14px 28px;
    }
    .page-hero h1 {
        font-size: 1.4rem;
    }

    /* Form pendaftaran & kartu: tombol full width di HP */
    .form-actions,
    .text-end.border-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn,
    .text-end.border-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES (Untuk Cetak Kartu)
   ============================================ */
@media print {
    .no-print, 
    .navbar, 
    footer, 
    .btn, 
    .back-to-top,
    .sidebar,
    .admin-menu {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   MODERN ENHANCEMENTS
   ============================================ */

/* Better base font */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar            { width: 7px; height: 7px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #94A3B8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #64748B; }

/* Card hover lift */
.card {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                box-shadow  0.25s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

/* Button shine effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%; padding-top: 200%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after { transform: translate(-50%, -50%) scale(1); opacity: 1; transition: 0s; }

/* Better focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.15) !important;
}

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, var(--primary) 0%, #C8960C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(0.4,0,0.2,1), transform .55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ALUR PENDAFTARAN — timeline homepage
   ============================================ */
.ppdb-flow-track-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #4ade80 50%, #C8960C 100%);
    border-radius: 999px;
    opacity: 0.35;
}

.ppdb-flow-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppdb-flow-dot--sm {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.22);
}

.ppdb-flow-num {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    line-height: 1;
}

.ppdb-flow-dot--sm .ppdb-flow-num {
    font-size: 0.95rem;
}

.ppdb-flow-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.ppdb-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-card--mobile {
    height: auto;
    cursor: default;
}

.ppdb-flow-tips {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.ppdb-flow-tips:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 94, 32, 0.12);
}

.ppdb-flow-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #E8F5E9, #fff);
    border: 1px solid rgba(27, 94, 32, 0.1);
    color: #1B5E20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.ppdb-flow-icon--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ppdb-flow-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8960C;
    background: rgba(200, 150, 12, 0.1);
    border: 1px solid rgba(200, 150, 12, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.ppdb-flow-mobile-line {
    width: 2px;
    min-height: 2rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, #1B5E20 0%, rgba(27, 94, 32, 0.15) 100%);
    border-radius: 999px;
}

/* Stat badge pulse */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(46,125,50,.0); }
}
.stat-badge-pulse { animation: softPulse 2.4s infinite; }

/* Image hover zoom */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(0.4,0,0.2,1); }
.img-hover-zoom:hover img { transform: scale(1.07); }

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,125,50,.4);
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
    line-height: 1;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#scrollTopBtn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    box-shadow: 0 6px 20px rgba(46,125,50,.5);
    transform: scale(1.08) translateY(-2px);
}

/* Navbar active link indicator */
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Table row transition */
table tbody tr {
    transition: background .15s ease;
}

/* Countdown box shimmer */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .table-custom {
    background: #16213e;
    color: #eee;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #0f3460;
    border-color: #1a1a2e;
    color: white;
}

body.dark-mode .table-custom tbody tr:hover {
    background: #0f3460;
}s

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d0f 0%, #1B5E20 50%, #0a3d0f 100%);
    background-size: 200% 100%;
    animation: barSlide 8s linear infinite;
}
@keyframes barSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   PAGE HERO BANNERS (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a3d0f 0%, #1B5E20 60%, #2E7D32 100%);
    padding: 64px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 28px 28px;
}
.page-hero h1 { position: relative; }
.page-hero p  { position: relative; opacity: .85; }