/* =====================================================
   1. CSS VARIABLES & ROOT
   ===================================================== */
:root {
    /* Primary Colors */
    --primary-color: #1e3a5f;
    --primary-dark: #0d2137;
    --primary-light: #2c5282;
    
    /* Accent Colors */
    --accent-color: #e53935;
    --accent-hover: #c62828;
    --accent-light: #ff6659;
    
    /* Secondary Colors */
    --secondary-color: #3182ce;
    --secondary-dark: #2c5aa0;
    --secondary-light: #63b3ed;
    
    /* Neutral Colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --bg-dark: #1a202c;
    
    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Font Families */
    --font-primary: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =====================================================
   2. BASE STYLES & RESET
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   PPDB GLOBAL STYLES
   File ini berisi class yang digunakan di semua halaman
   ===================================================== */

/* Style untuk file upload wajib */
.file-upload.required-upload {
    border: 2px dashed #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.file-upload.required-upload:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.file-required {
    font-size: 11px;
    color: #dc3545;
    font-weight: bold;
    margin-top: 5px;
    padding: 2px 8px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    display: inline-block;
}

/* Style untuk file yang sudah diupload */
.file-upload.has-file {
    border: 2px solid #198754;
    background-color: rgba(25, 135, 84, 0.05);
}

/* Highlight error pada file upload */
.is-invalid-upload {
    border-color: #dc3545 !important;
    animation: pulse-error 0.5s;
}

@keyframes pulse-error {
    0% { border-color: #dc3545; }
    50% { border-color: #ffc107; }
    100% { border-color: #dc3545; }
}

/* =====================================================
   3. NAVIGATION STYLES
   ===================================================== */
.navbar-ppdb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar-ppdb.sticky-top {
    backdrop-filter: blur(10px);
}

.navbar-ppdb .navbar-brand {
    color: var(--bg-white);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.navbar-ppdb .navbar-brand:hover {
    color: var(--bg-white);
    transform: translateY(-2px);
}

.navbar-ppdb .navbar-brand img {
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.navbar-ppdb .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-ppdb .nav-link:hover,
.navbar-ppdb .nav-link.active {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-ppdb .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
}

.navbar-ppdb .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   4. HERO SECTION
   ===================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

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

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =====================================================
   5. BUTTONS
   ===================================================== */
.btn-ppdb {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--bg-white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
}

.btn-ppdb:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ppdb:active {
    transform: translateY(0);
}

.btn-ppdb-outline {
    background-color: transparent;
    color: var(--bg-white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--bg-white);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
}

.btn-ppdb-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   6. CARDS
   ===================================================== */
.card-ppdb {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card-ppdb:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-ppdb .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    font-weight: 700;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1.1rem;
}

.card-ppdb .card-body {
    padding: 1.5rem;
}

/* =====================================================
   7. STATISTICS CARDS
   ===================================================== */
.stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

/* =====================================================
   8. SECTION STYLES
   ===================================================== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* =====================================================
   9. TIMELINE
   ===================================================== */
.timeline-ppdb {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-ppdb::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 3px solid var(--border-medium);
    transition: all var(--transition-normal);
}

.timeline-item.completed::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.timeline-item.active::before {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(229, 57, 53, 0.1);
    }
}

.timeline-content {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.timeline-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* =====================================================
   10. QUOTA BADGES
   ===================================================== */
.quota-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.quota-badge.available {
    background-color: #d4edda;
    color: #155724;
}

.quota-badge.full {
    background-color: #f8d7da;
    color: #721c24;
}

/* =====================================================
   11. ALERTS
   ===================================================== */
.alert-ppdb {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: start;
}

.alert-ppdb i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* =====================================================
   12. TABLES
   ===================================================== */
.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background-color: var(--bg-gray);
}

.table thead th {
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--border-light);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-light);
}

/* =====================================================
   13. FOOTER
   ===================================================== */
.footer-ppdb {
    background: linear-gradient(135deg, var(--primary-dark), var(--bg-dark));
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-ppdb h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-ppdb h5 img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.footer-ppdb ul {
    padding: 0;
}

.footer-ppdb a:hover {
    color: var(--bg-white) !important;
    padding-left: 5px;
}

.footer-ppdb hr {
    opacity: 0.1;
}

/* =====================================================
   14. UTILITIES
   ===================================================== */
.bg-light {
    background-color: var(--bg-light) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* =====================================================
   15. RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .timeline-ppdb::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-item::before {
        left: 8px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .btn-ppdb,
    .btn-ppdb-outline {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .step-indicator {
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
}

/* =====================================================
   16. STEP INDICATOR (Progress Bar)
   ===================================================== */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-light);
    transform: translateY(-50%);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    margin-bottom: 0.75rem;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: all var(--transition-normal);
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
    transform: scale(1.1);
}

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

.step.completed .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.step.completed .step-label {
    color: var(--primary-color);
}

/* =====================================================
   17. FORM CONTAINER & SECTIONS
   ===================================================== */
.form-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding-bottom: 2rem;
}

.form-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.form-section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
}

/* =====================================================
   18. FORM CONTROLS
   ===================================================== */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: '*';
    color: var(--accent-color);
    margin-left: 0.25rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.1);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--accent-color);
}

.invalid-feedback {
    display: block;
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-primary);
}

/* =====================================================
   19. FILE UPLOAD
   ===================================================== */
.file-upload {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-light);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.file-upload h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.file-upload p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.file-preview {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.file-preview::before {
    content: '✓ ';
    color: #28a745;
    font-weight: 700;
}

/* =====================================================
   20. ALERT CUSTOM
   ===================================================== */
.alert-custom {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid;
}

.alert-custom h5,
.alert-custom h6 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.alert-custom ul {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.alert-custom.alert-danger {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-custom.alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.alert-custom.alert-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.alert-custom.alert-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* =====================================================
   21. SUBMIT BUTTON
   ===================================================== */
.btn-submit {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--bg-white);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================
   22. DATA PARENT/WALI SECTIONS
   ===================================================== */
.form-section h6.text-primary {
    font-size: 1.125rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

/* =====================================================
   23. GUIDE CONTAINER (Panduan Page)
   ===================================================== */
.guide-container {
    max-width: 1200px;
    margin: 0 auto;
}

.header-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.header-section h1 {
    font-weight: 800;
    margin-bottom: 1rem;
}

.header-section h2 {
    font-weight: 700;
    opacity: 0.95;
}

.header-section .lead {
    opacity: 0.9;
    font-size: 1.125rem;
}

/* =====================================================
   24. GUIDE CARD
   ===================================================== */
.guide-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-color);
}

.guide-card h3 {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.guide-card .content {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* =====================================================
   25. STEP NUMBER (Panduan Steps)
   ===================================================== */
.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.guide-card .col-md-6 {
    position: relative;
}

.guide-card .col-md-6 h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* =====================================================
   26. REQUIREMENT LIST
   ===================================================== */
.requirement-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.requirement-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.requirement-list li i {
    position: absolute;
    left: 0;
    top: 0.6rem;
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* =====================================================
   27. DOCUMENT BOX
   ===================================================== */
.document-box {
    background: var(--bg-light);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid var(--border-light);
    height: 100%;
}

.document-box:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.document-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.document-box h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.document-box p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.document-box small {
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
}

.document-box small.text-danger {
    background-color: #f8d7da;
}

.document-box small.text-info {
    background-color: #d1ecf1;
}

/* =====================================================
   28. ACCORDION (FAQ)
   ===================================================== */
.accordion-guide {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-guide .accordion-item {
    border: none;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
}

.accordion-guide .accordion-item:last-child {
    border-bottom: none;
}

.accordion-guide .accordion-button {
    background: var(--bg-white);
    color: var(--primary-color);
    font-weight: 700;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
    transition: all var(--transition-fast);
}

.accordion-guide .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
}

.accordion-guide .accordion-button:hover {
    background: var(--bg-light);
}

.accordion-guide .accordion-button:not(.collapsed):hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.accordion-guide .accordion-button::after {
    filter: brightness(0) invert(0.3);
    transition: all var(--transition-fast);
}

.accordion-guide .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-guide .accordion-body {
    padding: 1.5rem;
    background: var(--bg-light);
    color: var(--text-secondary);
    line-height: 1.8;
}

.accordion-guide .accordion-body ol,
.accordion-guide .accordion-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.accordion-guide .accordion-body li {
    margin-bottom: 0.5rem;
}

/* =====================================================
   29. DOWNLOAD BUTTON
   ===================================================== */
.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--bg-white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    margin-top: 1rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   30. CUSTOM BUTTON (Action Buttons)
   ===================================================== */
.btn-custom {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Variant 1 - Accent Red (Daftar Sekarang) */
.btn-custom-1 {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--bg-white);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-custom-1:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Variant 2 - Secondary Blue (Cek Status) */
.btn-custom-2 {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--bg-white);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-custom-2:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Variant 3 - Green/Teal (Panduan) */
.btn-custom-3 {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #1e936f, #16755a);
    color: var(--bg-white);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-custom-3:hover {
    background: linear-gradient(135deg, #16755a, #1e936f);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Variant 4 - Purple/Violet */
.btn-custom-4 {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: var(--bg-white);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-custom-4:hover {
    background: linear-gradient(135deg, #5a32a3, #6f42c1);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   31. PRINT STYLES
   ===================================================== */
@media print {
    .navbar-ppdb,
    .btn,
    .btn-custom,
    .download-btn,
    .footer-ppdb {
        display: none !important;
    }
    
    .guide-container {
        max-width: 100%;
        margin: 0;
    }
    
    .guide-card,
    .header-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .accordion-button {
        background: var(--bg-white) !important;
        color: var(--primary-color) !important;
    }
    
    .accordion-collapse {
        display: block !important;
    }
}

/* =====================================================
   32. RESPONSIVE - PANDUAN PAGE
   ===================================================== */
@media (max-width: 991.98px) {
    .header-section {
        padding: 2rem 1.5rem;
    }
    
    .header-section h1 {
        font-size: 1.75rem;
    }
    
    .guide-card {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .document-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .header-section h1 {
        font-size: 1.5rem;
    }
    
    .guide-card {
        padding: 1.25rem;
        border-left-width: 3px;
    }
    
    .accordion-guide .accordion-button {
        padding: 1rem;
        font-size: 0.9375rem;
    }
    
    .accordion-guide .accordion-body {
        padding: 1rem;
    }
    
    .timeline-main .timeline-item {
        padding-left: 0;
    }
    
    .timeline-main .timeline-icon {
        position: relative;
        left: 0;
        margin-bottom: 1rem;
    }
    
    .info-box {
        padding: 1.5rem;
    }
}

/* =====================================================
   33. SCHEDULE CONTAINER (Jadwal Page)
   ===================================================== */
.schedule-container {
    max-width: 1200px;
    margin: 0 auto;
}

.status-badge-large {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-top: 1rem;
    display: inline-block;
    font-weight: 700;
}

/* =====================================================
   34. TIMELINE MAIN (Advanced Timeline for Schedule)
   ===================================================== */
.timeline-main {
    position: relative;
    padding: 2rem 0;
}

.timeline-main::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--border-light) 0%, var(--primary-color) 50%, var(--border-light) 100%);
    border-radius: 50px;
}

.timeline-main .timeline-item {
    position: relative;
    padding-left: 120px;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.timeline-main .timeline-item:last-child {
    padding-bottom: 0;
}

/* Timeline Icon */
.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border: 4px solid var(--border-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    z-index: 2;
}

.timeline-item.completed .timeline-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 0 0 6px rgba(30, 58, 95, 0.1);
}

.timeline-item.active .timeline-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-color: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.2);
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(229, 57, 53, 0.1);
        transform: scale(1.05);
    }
}

/* Timeline Content */
.timeline-main .timeline-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
}

.timeline-main .timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.timeline-main .timeline-content.completed {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.02), rgba(30, 58, 95, 0.05));
}

.timeline-main .timeline-content.active {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.02), rgba(229, 57, 53, 0.05));
    box-shadow: var(--shadow-lg);
}

.timeline-main .timeline-content h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-main .timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Date Badge */
.date-badge {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-badge.completed {
    background: var(--primary-color);
    color: var(--bg-white);
}

.date-badge.active {
    background: var(--accent-color);
    color: var(--bg-white);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(229, 57, 53, 0);
    }
}

/* =====================================================
   35. INFO BOX (Schedule Info Cards)
   ===================================================== */
.info-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.info-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.info-box h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* =====================================================
   36. ALERT VARIATIONS (Schedule Specific)
   ===================================================== */
.timeline-content .alert-custom {
    margin-top: 1.5rem;
}

.timeline-content .alert-custom h6 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.timeline-content .alert-custom ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.timeline-content .alert-custom li {
    margin-bottom: 0.25rem;
}

.alert-primary.alert-custom {
    background-color: #cfe2ff;
    border-left-color: var(--primary-color);
    color: #084298;
}

.alert-secondary.alert-custom {
    background-color: #e2e3e5;
    border-left-color: #6c757d;
    color: #41464b;
}

.alert-light.alert-custom {
    background-color: var(--bg-light);
    border-left-color: var(--border-medium);
    color: var(--text-primary);
}

/* =====================================================
   37. TABLE STYLING (Schedule Kuota Table)
   ===================================================== */
.table-bordered {
    border-color: var(--border-light);
}

.table-bordered thead {
    background: var(--bg-gray);
}

.table-bordered thead th {
    border-color: var(--border-medium);
    color: var(--primary-color);
    font-weight: 700;
    padding: 1rem;
}

.table-bordered tbody td {
    border-color: var(--border-light);
    padding: 0.875rem 1rem;
}

.table-primary {
    background-color: rgba(30, 58, 95, 0.1) !important;
}

/* =====================================================
   38. RESPONSIVE - SCHEDULE PAGE
   ===================================================== */
@media (max-width: 991.98px) {
    .timeline-main::before {
        left: 30px;
    }
    
    .timeline-main .timeline-item {
        padding-left: 100px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-main .timeline-content {
        padding: 1.5rem;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* =====================================================
   STATUS PAGE - ADDITIONAL CSS
   Komponen khusus untuk halaman status.php
   Paste CSS ini setelah CSS global
   ===================================================== */

/* =====================================================
   STATUS CONTAINER
   ===================================================== */
.status-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================================================
   SEARCH BOX
   ===================================================== */
.search-box {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    border-top: 5px solid var(--primary-color);
}

.search-box h1 {
    font-weight: 800;
}

.search-box .input-group-text {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-right: none;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.search-box .form-control {
    border: 2px solid var(--border-light);
    border-left: none;
    padding: 0.75rem 1rem;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.search-box .form-control:focus + .input-group-text {
    border-color: var(--primary-color);
}

.search-box .form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* =====================================================
   RESULT BOX
   ===================================================== */
.result-box {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary-color);
}

.result-box h2 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* =====================================================
   STATUS BADGE (Large)
   ===================================================== */
.status-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   TIMELINE STATUS (Horizontal Progress)
   ===================================================== */
.timeline-status {
    display: flex;
    justify-content: space-between;
    align-items: start;
    position: relative;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.timeline-status::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--border-light);
    z-index: 0;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-step .step-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-white);
    border: 4px solid var(--border-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.timeline-step.completed .step-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.timeline-step.active .step-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-color: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2);
    animation: pulse-step 2s infinite;
}

@keyframes pulse-step {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(229, 57, 53, 0.1);
        transform: scale(1.05);
    }
}

.timeline-step h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-step small {
    font-size: 0.75rem;
    display: block;
}

/* =====================================================
   CARD VARIATIONS (Status Page)
   ===================================================== */
.result-box .card {
    transition: all var(--transition-normal);
}

.result-box .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.result-box .card-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.result-box .card-body p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.result-box .card-body p strong {
    color: var(--primary-color);
    display: inline-block;
    min-width: 120px;
}

/* Status Icon Display */
.result-box .display-1 {
    font-size: 5rem;
}

/* =====================================================
   INFO CARDS (Catatan, Nilai, dll)
   ===================================================== */
.result-box .card-header {
    font-weight: 700;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
}

.result-box .card.border-info .card-header {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.result-box .card.border-success .card-header {
    background-color: #28a745;
    border-color: #28a745;
}

.result-box .card.border-warning .card-header {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* =====================================================
   NOT FOUND STATE
   ===================================================== */
.result-box .bi-search.display-1 {
    opacity: 0.3;
}

.result-box .alert ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.result-box .alert li {
    margin-bottom: 0.5rem;
}

/* =====================================================
   RESPONSIVE - STATUS PAGE
   ===================================================== */
@media (max-width: 991.98px) {
    .search-box,
    .result-box {
        padding: 2rem 1.5rem;
    }
    
    .timeline-status {
        flex-wrap: wrap;
    }
    
    .timeline-status::before {
        display: none;
    }
    
    .timeline-step {
        flex: 0 0 50%;
        margin-bottom: 2rem;
    }
    
    .timeline-step .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .search-box,
    .result-box {
        padding: 1.5rem;
    }
    
    .search-box h1 {
        font-size: 1.5rem;
    }
    
    .timeline-step {
        flex: 0 0 100%;
    }
    
    .timeline-step h5 {
        font-size: 0.9375rem;
    }
    
    .timeline-step p {
        font-size: 0.8125rem;
    }
    
    .result-box .display-1 {
        font-size: 3rem;
    }
    
    .result-box .card-body p strong {
        min-width: auto;
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* =====================================================
   PENGUMUMAN PAGE - ADDITIONAL CSS
   Komponen khusus untuk halaman pengumuman.php
   Paste CSS ini setelah CSS global
   ===================================================== */

/* =====================================================
   ANNOUNCEMENT CONTAINER
   ===================================================== */
.announcement-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* =====================================================
   STATS BOX (Different from stat-card)
   ===================================================== */
.stats-box {
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stats-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stats-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.stats-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   SEARCH BUTTON (Different from btn-custom)
   ===================================================== */
.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--bg-white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-search:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   TABLE CONTAINER
   ===================================================== */
.table-container {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.table-container h4 {
    color: var(--primary-color);
    font-weight: 700;
}

/* =====================================================
   RANKING BADGE & MEDALS
   ===================================================== */
.ranking-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.ranking-badge.ranking-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.ranking-badge.ranking-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.ranking-badge.ranking-3 {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: #fff;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.ranking-badge.ranking-other {
    background: var(--bg-gray);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.medal-icon {
    font-size: 1.5rem;
    display: block;
    text-align: center;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.medal-icon.gold {
    color: #FFD700;
}

.medal-icon.silver {
    color: #C0C0C0;
}

.medal-icon.bronze {
    color: #CD7F32;
}

/* =====================================================
   TABLE STYLING (Pengumuman Specific)
   ===================================================== */
#pengumumanTable {
    margin-bottom: 0;
}

#pengumumanTable thead th {
    background: var(--bg-gray);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

#pengumumanTable tbody tr {
    transition: all var(--transition-fast);
}

#pengumumanTable tbody tr:hover {
    background-color: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#pengumumanTable tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-color: var(--border-light);
}

#pengumumanTable tbody td strong {
    color: var(--primary-color);
}

#pengumumanTable tbody td small {
    display: block;
    margin-top: 0.25rem;
}

/* =====================================================
   NILAI COLOR CLASSES
   ===================================================== */
.text-success-nilai {
    color: #28a745 !important;
}

.text-warning-nilai {
    color: #ffc107 !important;
}

.text-danger-nilai {
    color: #dc3545 !important;
}

/* =====================================================
   STATUS BADGE (Table specific)
   ===================================================== */
#pengumumanTable .status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .navbar-ppdb,
    .btn,
    .btn-custom,
    .btn-search,
    .search-box,
    .footer-ppdb,
    .d-flex.gap-3 {
        display: none !important;
    }
    
    .announcement-container {
        max-width: 100%;
    }
    
    .header-section {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0;
    }
    
    .header-section h1,
    .header-section h2,
    .header-section p {
        color: #000 !important;
    }
    
    .table-container {
        box-shadow: none;
        padding: 0;
    }
    
    #pengumumanTable {
        font-size: 0.875rem;
    }
    
    #pengumumanTable thead {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .stats-box {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .badge {
        border: 1px solid #000;
    }
    
    .alert {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* =====================================================
   RESPONSIVE - PENGUMUMAN PAGE
   ===================================================== */
@media (max-width: 991.98px) {
    .stats-box {
        padding: 1.5rem 1rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .stats-label {
        font-size: 0.875rem;
    }
    
    .table-container {
        padding: 1.5rem;
    }
    
    .ranking-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .medal-icon {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    #pengumumanTable {
        font-size: 0.875rem;
    }
    
    #pengumumanTable thead th,
    #pengumumanTable tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    #pengumumanTable thead th {
        font-size: 0.75rem;
    }
    
    .ranking-badge {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    
    .medal-icon {
        font-size: 1rem;
    }
    
    #pengumumanTable .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
}

@media (max-width: 575.98px) {
    .stats-box {
        padding: 1.25rem 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-label {
        font-size: 0.8125rem;
    }
    
    .table-container {
        padding: 1rem;
        overflow-x: auto;
    }
    
    /* Make table scrollable horizontally on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #pengumumanTable {
        min-width: 800px;
    }
}

