/* =========================================
   GENERAL & LAYOUT UTAMA
   ========================================= */

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f0f4f8;
    /* Latar belakang abu-abu muda */
    color: #333;
    line-height: 1.6;
}

.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* =========================================
   STYLE UNTUK HALAMAN ADMIN
   ========================================= */

/* Hapus background biru muda di halaman admin */
body {
    background-color: #f0f4f8;
}

/* Layout utama admin (Grid) */
.admin-container {
    max-width: 1400px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 320px; /* Kolom utama dan sidebar */
    grid-template-areas:
        "header header"
        "content sidebar";
    gap: 25px;
}

.admin-header {
    grid-area: header;
    background: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.admin-header h2 {
    margin: 0 0 5px 0;
    color: #0c1a29;
}
.admin-header p {
    margin: 0;
    color: #666;
}

.admin-content {
    grid-area: content;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Penting untuk tabel */
}

.admin-sidebar {
    grid-area: sidebar;
}

/* Kartu Statistik */
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.stat-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0c1a29;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 10px;
}
.stat-card p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}
.stat-card h3 {
    margin: 5px 0 0;
    font-size: 2.5em;
    color: #3498db;
}

/* Tabel Admin */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* Agar tabel bisa di-scroll di HP */
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th,
.admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f4f8;
}
.admin-table th {
    background-color: #f9fafb;
    color: #444;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-table td {
    color: #333;
    font-size: 0.95em;
}
.admin-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Badge */
.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}
.badge-individu {
    background-color: #e0f2fe;
    color: #0c546e;
}
.badge-tim {
    background-color: #d4edda;
    color: #155724;
}
.badge-paid {
    background-color: #d1fae5;
    color: #065f46;
}
/* Anda bisa tambahkan .badge-pending, dll. */

.btn-admin-detail {
    background-color: #3498db;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s;
}
.btn-admin-detail:hover {
    background-color: #2980b9;
}

/* Responsive Admin */
@media (max-width: 900px) {
    .admin-container {
        grid-template-columns: 1fr; /* 1 kolom */
        grid-template-areas:
            "header"
            "content"
            "sidebar";
    }
}

/* =========================================
   STYLE UNTUK HALAMAN FORM REGISTRASI
   ========================================= */

/* Ubah .page-container khusus di halaman form */
.form-container.page-container {
    max-width: 800px; /* Buat form sedikit lebih sempit */
    padding: 2.5rem 3rem;
}
.form-container .page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.form-container .page-header p {
    font-size: 1.1em;
    color: #ffffff;
    margin-top: -10px;
}

/* Style Tombol Toggle (Individu/Tim) */
.form-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    background-color: #f0f4f8;
    border-radius: 8px;
    padding: 5px;
}
.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background-color: transparent;
    color: #667;
    font-size: 1em;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.toggle-btn.active {
    background-color: #334d6e; /* Biru tua (sesuai dashboard) */
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style Bagian Form */
.form-section {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e0e6ed;
    padding-bottom: 2.5rem;
}
.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.form-section h3 {
    color: #0c1a29;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5em;
}

/* Grup untuk peserta tim */
.team-member-group {
    background: #f9fafb;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.team-member-group h4 {
    margin-top: 0;
    color: #334d6e;
    font-size: 1.2em;
}

/* Style Form Inputs */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c0d1e2;
    border-radius: 8px;
    font-size: 1em;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box; /* Mencegah padding merusak layout */
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Style tombol file input */
.form-group .file-input {
    padding: 10px;
    background-color: #f0f4f8;
    cursor: pointer;
}
.form-group .file-input:hover {
    background-color: #e0e6ed;
}

/* Tombol Submit Utama */
.btn-submit {
    display: block; /* Buat tombol jadi full width */
    width: 100%;
    background-color: #3498db; /* Biru cerah (sesuai referensi) */
    color: #ffffff;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-submit:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .form-container.page-container {
        padding: 1.5rem;
    }
}

/* ... (semua kode CSS Anda yang lain) ... */

/* =========================================
   STYLE UNTUK DAFTAR TIMELINE DI DASHBOARD
   ========================================= */

.dashboard-timeline-list {
    list-style: none; /* Hilangkan bullet points */
    padding: 0;
    margin: -15px 0 25px 0; /* Ganti <p> deskripsi lama */
    font-size: 0.95em;
    opacity: 0.9;
    flex-grow: 1; /* PENTING: Mendorong tombol "View Full Timeline" ke bawah */
}
.dashboard-timeline-list li {
    margin-bottom: 8px; /* Jarak antar item */
}
.dashboard-timeline-list li strong {
    color: #90f3c4; /* Aksen mint green (dari dashboard) */
    display: block; /* Buat judul di atas tanggal */
}

/* =========================================
   NAVBAR STYLES (TERBARU DENGAN SUBTITLE)
   ========================================= */

.navbar {
    background-color: #0c1a29;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* Style untuk Logo dan Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo-image {
    margin-right: 12px;
    width: 50px;
    height: 50px;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-main {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.brand-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #a8c4db;
    /* Warna subtitle */
}

/* Style untuk Link Navigasi */
.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-nav li {
    margin-left: 35px;
}

.navbar-nav a {
    text-decoration: none;
    color: #a8c4db;
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s;
    border-bottom: 2px solid transparent;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* =========================================
   DASHBOARD GRID (PROPORSI JARAK)
   ========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 kolom */
    gap: 25px;
    /* Jarak proporsional */
}

/* =========================================
   CARD STYLING (WARNA BIRU TUA)
   ========================================= */

/* Ini akan menimpa .card yang lama */
.dashboard-grid .card {
    background-color: #334d6e;
    /* WARNA BIRU TUA */
    color: #ffffff;
    /* TEKS PUTIH */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.2);
    display: flex;
    flex-direction: column;
    border: none;
    /* Menghapus sisa border jika ada */
}

.dashboard-grid .card-icon {
    font-size: 3em;
    color: #90f3c4;
    /* Ikon hijau mint */
    margin-bottom: 15px;
}

.dashboard-grid .card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.9em;
    font-weight: 600;
    color: #ffffff;
    /* Pastikan teks putih */
}

.dashboard-grid .card p {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Mendorong tombol ke bawah */
    color: #ffffff;
    /* Pastikan teks putih */
}

/* Tombol di dalam kartu (Tombol Putih) */
.dashboard-grid .card .btn {
    background-color: #ffffff;
    /* TOMBOL PUTIH */
    color: #334d6e;
    /* Teks tombol biru tua */
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    align-self: flex-start;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    /* Menghapus style .btn-download */
}

.dashboard-grid .card .btn:hover {
    background-color: #f0f4f8;
    transform: translateY(-2px);
}

/* Kartu Welcome memanjang */
.card-span-2 {
    grid-column: 1 / -1;
}

.card-welcome h2 {
    font-size: 2.5em;
    margin-bottom: 5px;
    color: #ffffff;
}

.card-welcome p {
    font-size: 1.2em;
    opacity: 1;
    color: #ffffff;
}

/* =========================================
   STYLE UNTUK HALAMAN STATIS (RULEBOOK, DLL)
   ========================================= */
.page-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    background-color: #ffffff;
    /* Kartu putih untuk halaman ini */
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-container h1 {
    color: #0c1a29;
    border-bottom: 3px solid #f0f4f8;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 1rem;
}

.page-container p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 2rem;
}

/* =========================================
   STYLE UNTUK DAFTAR DOWNLOAD INTERAKTIF
   ========================================= */
.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 15px;
}

.download-list a {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f9fafb;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease, box-shadow 0.3s ease,
        transform 0.2s ease;
}

.download-list a:hover {
    background-color: #ffffff;
    border-color: #c0d1e2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.download-list .file-icon {
    font-size: 2.2em;
    margin-right: 20px;
    color: #d9534f;
}

.download-list .file-name {
    flex-grow: 1;
    font-weight: 600;
    font-size: 1.1em;
    color: #0c1a29;
}

.download-list .download-button {
    background-color: #3498db;
    /* Tombol biru di halaman rulebook */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.download-list a:hover .download-button {
    background-color: #2980b9;
}

/* =========================================
   STYLE UNTUK HALAMAN TIMELINE (LAYOUT BARU - image_dd16a2.jpg)
   ========================================= */

/* HAPUS SEMUA CSS .vertical-timeline-container,
   .timeline-item, .timeline-node SEBELUMNYA
*/

/* Wadah putih di luar */
.page-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Header (IHS AO Timeline) - DIUBAH JADI KARTU */
/* Header (IHS AO Timeline) - DIUBAH JADI KARTU */
.page-header {
    background-color: #334d6e;
    /* WARNA BIRU KARTU */
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    /* Jarak ke kartu di bawahnya */
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.2);
    /* text-align: center; Dihapus */
}

.page-header h1 {
    color: #ffffff;
    /* Teks putih */
    margin: 0 0 5px 0;
    font-size: 2.2em;
    border-bottom: none;
    /* Hapus garis bawah */
    padding-bottom: 0;
}

.page-header p {
    font-size: 1.2em;
    color: #a8c4db;
    /* Warna subtitle */
    margin: 0;
}

/* KARTU BIRU TUA (INI YANG ANDA TUNGGU) */
.timeline-card {
    background-color: #334d6e;
    /* WARNA BIRU KARTU */
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.2);
}

.timeline-card h3 {
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #5a728e;
    padding-bottom: 10px;
}

/* Kartu Important Dates */
.important-dates ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-dates li {
    padding: 8px 0;
    font-size: 1.1em;
    color: #a8c4db;
    border-bottom: 1px solid #4a617c;
}

.important-dates li:last-child {
    border-bottom: none;
}

.important-dates li span {
    font-weight: 600;
    color: #ffffff;
    min-width: 220px;
    display: inline-block;
}

/* Visual Timeline Stepper */
.visual-timeline {
    padding-bottom: 30px;
}

.timeline-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 20px;
}

/* GARIS KONEKTOR */
.timeline-stepper::before {
    content: "";
    position: absolute;
    top: 30px;
    /* Posisi vertikal garis */
    left: 5%;
    right: 5%;
    height: 4px;
    background-color: #90f3c4;
    /* WARNA MINT GREEN */
    z-index: 1;
}

/* Setiap langkah di timeline */
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 15%;
}

/* Default dot (Hollow/Kosong) - Sesuai gambar */
.step-dot {
    width: 20px;
    height: 20px;
    background-color: #334d6e;
    /* Sama dengan latar kartu */
    border-radius: 50%;
    border: 4px solid #90f3c4;
    /* Garis mint green */
    box-shadow: none;
    /* Hapus shadow */

    /* Untuk menampung emoji */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    line-height: 1.1;
}

/* Tambahkan kelas ini jika step sudah selesai (Solid) */
.step-dot.step-done {
    background-color: #90f3c4;
    /* Warna solid mint green */
    border-color: #90f3c4;
}

/* Style untuk dot terakhir Anda yang berisi emoji (Sudah Benar) */
.step-dot.final-dot {
    background-color: #90f3c4;
    border-color: #90f3c4;
}

.step-details-wrapper {
    margin-top: 10px;
}

.step-date {
    font-size: 0.9em;
    font-weight: 600;
    color: #a8c4db;
    margin-bottom: 3px;
}

.step-label {
    font-size: 0.9em;
    color: #ffffff;
    font-weight: 500;
}

/* Responsive untuk HP */
@media (max-width: 768px) {
    .timeline-stepper {
        flex-direction: column;
        /* Jadi vertikal */
        gap: 15px;
        /* Jarak antar step */
        padding-top: 0;
    }

    .timeline-stepper::before {
        display: none;
        /* Sembunyikan garis horizontal */
    }

    .timeline-step {
        width: 100%;
        flex-direction: row;
        /* [Dot] [Teks] */
        align-items: center;
        text-align: left;
        background: #0c1a29;
        /* Latar belakang per step */
        padding: 15px;
        border-radius: 8px;
    }

    .step-dot {
        flex-shrink: 0;
        margin-right: 15px;
    }

    .step-details-wrapper {
        margin-top: 0;
    }

    .step-date {
        color: #90f3c4;
        /* Buat tanggal menonjol */
        font-size: 0.9em;
    }

    .step-label {
        font-size: 1.1em;
    }
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        /* 1 kolom di HP */
    }

    .card-span-2 {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }

    .navbar-container {
        padding: 0 20px;
    }

    .main-content {
        padding: 10px;
    }
}

/* =========================================
   STYLE UNTUK FOOTER KONTAK
   ========================================= */

/* Menambahkan smooth scroll agar klik 'Contact' terlihat mulus */
html {
    scroll-behavior: smooth;
}

.site-footer {
    background-color: #0c1a29; /* Warna biru tua navbar */
    color: #a8c4db; /* Warna teks (biru muda) */
    padding: 50px 20px;
    margin-top: 40px; /* Jarak dari konten utama */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    /* Layout grid agar rapi */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #ffffff; /* Judul putih */
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 20px;
    /* Aksen mint green dari dashboard */
    border-bottom: 2px solid #90f3c4;
    padding-bottom: 10px;
    display: inline-block; /* Agar border pas dengan teks */
}

.footer-section p {
    margin: 0 0 10px;
    line-height: 1.7;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 12px;
}

.social-links a {
    color: #a8c4db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-section .copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: #7a95aa;
}

/* =========================================
   STYLE UNTUK LINK WA DI FOOTER
   ========================================= */

/* Ini membuat link CP (Manisahayu, dll.)
   terlihat sama seperti teks biasa */
.footer-section p a {
    color: #a8c4db; /* Warna yang sama dengan teks <p> */
    text-decoration: none; /* Hilangkan garis bawah */
    transition: color 0.3s ease;
}

/* Saat di-hover, link akan jadi putih dan bergaris bawah */
.footer-section p a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* =========================================
   STYLE UNTUK ALERT BOX
   ========================================= */

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1em;
    line-height: 1.5;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
