/* Import Font Keren dari Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7); /* Efek Kaca Gelap */
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    /* Background abstract simple */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 97, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(96, 239, 255, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    
    /* REVISI DISINI: Ubah height jadi min-height dan hapus flexbox */
    min-height: 100vh; 
    padding-bottom: 50px; /* Biar ada napas di bawah */
}

/* Card dengan efek Glassmorphism */
.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    
    /* REVISI DISINI: Tambahkan baris ini agar kartu kembali ke tengah */
    margin: 80px auto; 
}

.brand-title {
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.brand-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Input Form Futuristik */
.form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px 15px; /* Padding besar biar enak ditekan di HP */
    border-radius: 12px;
    margin-bottom: 15px;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: #60efff; /* Warna Cyan saat diklik */
    box-shadow: 0 0 0 4px rgba(96, 239, 255, 0.1);
    color: white;
}

.form-control::placeholder {
    color: #64748b;
}

/* Tombol Gradient */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px); /* Efek naik sedikit saat dihover */
    box-shadow: 0 10px 15px -3px rgba(0, 97, 255, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-footer a {
    color: #60efff;
    text-decoration: none;
}

/* --- TAMBAHAN UNTUK DASHBOARD --- */

/* Sidebar (Menu Kiri) */
.sidebar {
    background: rgba(15, 23, 42, 0.9);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    padding: 20px;
}

.nav-link {
    color: var(--text-muted);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(0, 97, 255, 0.1);
    color: #60efff;
    box-shadow: 0 0 15px rgba(96, 239, 255, 0.1);
}

/* Card Statistik (Kotak Angka) */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tabel Dark Mode Keren */
.table-dark-custom {
    background: transparent;
    color: var(--text-light);
    border-collapse: separate; 
    border-spacing: 0 10px; /* Jarak antar baris */
}

.table-dark-custom thead th {
    background: rgba(15, 23, 42, 0.8);
    border: none;
    padding: 15px;
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.9rem;
}

.table-dark-custom tbody tr {
    background: rgba(30, 41, 59, 0.5); /* Semi transparan */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.table-dark-custom tbody tr:hover {
    transform: scale(1.01);
    background: rgba(30, 41, 59, 0.9);
}

.table-dark-custom td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

/* Status Badge (Label Warna) */
.badge-custom {
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}
.bg-wait { background: rgba(255, 193, 7, 0.2); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.3); }
.bg-success-custom { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

/* --- TAMBAHAN UNTUK DASHBOARD MITRA --- */

/* Teks Berjalan (Marquee) */
.ticker-wrap {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-bottom: 20px;
}

.ticker-content {
    display: inline-block;
    animation: ticker 15s linear infinite;
    font-weight: 600;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Card Leaderboard (Piala) */
.leader-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid #ffd700; /* Warna Emas */
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    position: relative;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

/* Tombol Input Besar */
.btn-action-big {
    background: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(0, 97, 255, 0.4);
    transition: all 0.3s;
}

.btn-action-big:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 97, 255, 0.6);
}