/* /home/akademil/e-certificate.akademiliterasi.co.id/assets/style.css */
/* VERSI LENGKAP - GABUNGAN FINAL */

/* --- 1. GAYA DASAR & FORMULIR LAMA (DIPERBAIKI) --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px 0 0 0; /* Hapus padding bawah agar footer menempel */
}
.container {
    max-width: 900px; /* Batas lebar untuk form verifikasi & admin */
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
h1, h2 {
    color: #0056b3;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}
p { line-height: 1.6; }

.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
input[type="text"], input[type="date"], input[type="password"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Penting untuk padding */
}
input[readonly] {
    background: #eee;
    color: #555;
}
.radio-group label {
    display: inline-block;
    font-weight: normal;
    margin-right: 15px;
}
.radio-group input[type="radio"] {
    margin-right: 5px;
}

.button, button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
}
.button:hover, button:hover { background-color: #0056b3; }
.button-danger { background-color: #dc3545; }
.button-danger:hover { background-color: #c82333; }
.button-secondary { background-color: #6c757d; }
.button-secondary:hover { background-color: #5a6268; }

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.cert-result {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}
.cert-result h3 { margin-top: 0; }
.cert-result img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    margin-top: 15px;
}

/* --- 2. GAYA ADMIN (TETAP DIPERLUKAN) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
th { background-color: #f9f9f9; }
th a {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
}
.sort-arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.8em;
}
.actions-cell form {
    display: inline-block;
    margin-right: 5px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bulk-entry {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #fdfdfd;
}
.bulk-entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- 3. GAYA FOOTER BARU (DIPERBAIKI) --- */
footer {
    text-align: center;
    margin-top: 40px; /* Beri jarak lebih */
    padding: 30px 20px;
    border-top: 1px solid #eee;
    color: #777;
    background-color: #ffffff; /* Footer di dalam latar putih */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
/* Tata letak footer baru */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Jarak antar elemen footer */
}
footer .form-group {
    margin-bottom: 0;
}
footer label {
    display: inline-block;
    margin-right: 10px;
    font-weight: normal;
}
#lang-switcher { 
    width: auto;
    padding: 5px;
}
/* Ikon sosial media di footer */
.footer-social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-social-links p {
    font-weight: 600;
    color: #555;
    margin: 0;
}
.footer-social-links .links {
    display: flex;
    gap: 15px;
}
.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Sedikit lebih kecil dari di accordion */
    height: 40px;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.2em; /* Sedikit lebih kecil */
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}
.footer-social-links a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
.footer-social-links .social-ig { background-color: #E1306C; }
.footer-social-links .social-tk { background-color: #000000; }
.footer-social-links .social-in { background-color: #0A66C2; }
/* Copyright */
.footer-copyright {
    margin-top: 10px;
    font-size: 0.9em;
}

/* --- 4. GAYA BARU UNTUK STATISTIK & RANKING --- */

.progress-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 2px solid #e0e0e0;
}
.progress-section h2 {
    text-align: center;
    border-bottom: none;
    color: #333;
    font-size: 2em;
    margin-bottom: 40px;
}

/* 4.1. Blok Statistik (Count-Up) */
.stats-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 20px;
}
.stats-block {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    justify-content: center;
}
.stat-item {
    flex-basis: 180px;
    flex-grow: 1;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 1px solid #ddd;
    box-shadow: 5px 5px 10px #bebebe, -5px -5px 10px #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}
.stat-item .count {
    font-size: 3em;
    font-weight: 700;
    color: #0056b3;
    display: block;
}
.stat-item .label {
    font-size: 1em;
    font-weight: 600;
    color: #555;
    display: block;
    margin-top: 5px;
}

/* 4.2. Blok Peringkat Podium (Top 3) */
.ranking-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 30px;
}
.ranking-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 50px;
    min-height: 250px;
}
.podium-item {
    flex-basis: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-bottom: 5px solid;
    transition: transform 0.3s ease;
}
.podium-item:hover {
    transform: translateY(-10px);
}
.podium-rank {
    font-size: 2em;
    font-weight: 800;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 15px;
}
.podium-name {
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
}
.podium-details {
    font-size: 0.9em;
    text-align: center;
    color: #555;
}
.podium-details strong {
    color: #0056b3;
}

.podium-item.gold {
    order: 2;
    flex-basis: 33%;
    min-height: 220px;
    background: #fff;
    border-color: #ffd700;
}
.podium-item.gold .podium-rank {
    background-color: #ffd700;
    font-size: 2.5em;
}
.podium-item.silver {
    order: 1;
    min-height: 190px;
    background: #fafafa;
    border-color: #c0c0c0;
}
.podium-item.silver .podium-rank {
    background-color: #c0c0c0;
}
.podium-item.bronze {
    order: 3;
    min-height: 190px;
    background: #fafafa;
    border-color: #cd7f32;
}
.podium-item.bronze .podium-rank {
    background-color: #cd7f32;
}

/* 4.3. Blok Info (Accordion) */
.validity-info {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #b8daff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.accordion-toggle {
    width: 100%;
    background-color: #e7f3ff;
    border: none;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #0056b3;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}
.accordion-toggle:hover {
    background-color: #d1ecff;
}
.accordion-toggle::after {
    content: '+';
    font-size: 1.5em;
    font-weight: 700;
    color: #0056b3;
    transition: transform 0.3s ease;
}
.accordion-toggle.active::after {
    content: '−';
    transform: rotate(180deg);
}
.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease;
    background: #ffffff;
}

/* --- 4.4. DAFTAR VALIDITAS (BARU) --- */
.validity-list {
    list-style-type: none; /* Hapus bullet default */
    padding-left: 0;
    margin-top: 20px; /* Beri padding dari atas saat terbuka */
    margin-bottom: 20px;
}
.validity-list li {
    position: relative; /* Untuk positioning ikon */
    padding-left: 35px; /* Ruang untuk ikon */
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.7;
    color: #333;
}
.validity-list li::before {
    content: '\f058'; /* Ikon Font Awesome (check-circle) */
    font-family: 'Font Awesome 6 Free'; /* Pastikan Font Awesome dimuat */
    font-weight: 900; /* Solid icon */
    color: #007bff; /* Warna ikon */
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 2px;
}

/* 4.5. Ikon Media Sosial (DIHAPUS DARI ACCORDION) */
.social-links {
    /* Style ini tidak lagi digunakan di dalam accordion, dipindah ke footer */
    /* Namun tetap ada untuk jaga-jaga jika dipanggil di tempat lain */
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.social-links p {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* --- 5. MEDIA QUERIES --- */
@media (max-width: 768px) {
    .progress-grid {
        grid-template-columns: 1fr;
    }
    .stats-block {
        justify-content: center;
    }
    .ranking-podium {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .podium-item {
        width: 100%;
        box-sizing: border-box;
    }
    .podium-item.gold { order: 1; min-height: 0; }
    .podium-item.silver { order: 2; min-height: 0; }
    .podium-item.bronze { order: 3; min-height: 0; }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .bulk-entry-grid {
        grid-template-columns: 1fr;
    }
}