:root {
    /* Professional Education Color Palette */
    --primary-color: #1a365d; /* Deep Blue */
    --secondary-color: #2b6cb0; /* Lighter Blue */
    --accent-color: #ed8936; /* Orange accent */
    --bg-color: #f7fafc; /* Very light gray/blue background */
    --surface-color: #ffffff;
    --text-main: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --table-header: #ebf8ff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Abstract Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
}

.shape-2 {
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    opacity: 0.2;
}

.shape-3 {
    top: 40%;
    left: 60%;
    width: 300px;
    height: 300px;
    background: #4fd1c5; /* Teal */
    opacity: 0.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.logo-icon {
    font-size: 2.5rem;
    color: white;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Search Section */
.search-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.search-icon {
    color: var(--text-light);
    margin: 0 1rem 0 1.5rem;
    font-size: 1.2rem;
}

#searchInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-main);
    outline: none;
}

#searchInput::placeholder {
    color: #a0aec0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(43, 108, 176, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(43, 108, 176, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.search-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Result Section & Table */
.result-section {
    flex: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    min-height: 200px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background-color: var(--table-header);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1.25rem 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f8fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #e6fffa;
    color: #319795;
}

.badge-time {
    background-color: #ebf4ff;
    color: #3182ce;
}

/* State Messages */
.state-message {
    padding: 3rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

.state-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .title { font-size: 1.75rem; }
    .search-box { flex-direction: column; border-radius: var(--border-radius); padding: 1rem; }
    .search-icon { display: none; }
    #searchInput { width: 100%; text-align: center; padding: 0.5rem 0 1rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1rem; }
    .btn-primary { width: 100%; }
    
    .table-container { overflow-x: auto; }
    table { min-width: 800px; }

    .result-card { padding: 1.5rem; }
    .student-info-grid { grid-template-columns: 1fr; gap: 1rem; }
    .card-actions { flex-direction: column; gap: 0.5rem !important; }
    .btn-download-form, .btn-print, #actionButtons a, #actionButtons button {
        width: 100%;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        box-sizing: border-box;
        line-height: 1.2;
        min-height: unset;
        height: auto !important;
    }
}

/* Print Button */
.btn-print {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.3);
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(229, 62, 62, 0.4);
}

/* Download Form Button */
.btn-download-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-download-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Result Card UI */
.result-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-top: 2rem;
    border-top: 5px solid var(--primary-color);
}

.student-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed #cbd5e1;
}

@media (max-width: 768px) {
    .student-info-grid {
        grid-template-columns: 1fr;
    }
    .card-actions {
        flex-direction: column;
    }
}

/* Tambahan Styling Halaman Konfirmasi Daftar Ulang Tahap 2 */
.card-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #cbd5e1;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card-box:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.biodata-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.custom-checkbox-container:hover {
    filter: brightness(0.98);
}

/* ==========================================
   STYLING COUNTDOWN TIMER (HITUNG MUNDUR)
========================================== */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.countdown-item {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 24px;
    min-width: 90px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -5px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.countdown-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
}

.countdown-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 10px;
    }
    .countdown-item {
        padding: 12px 14px;
        min-width: 70px;
    }
    .countdown-value {
        font-size: 1.8rem;
    }
    .countdown-label {
        font-size: 0.7rem;
    }
}

