/* @ziedanet - BLOK CSS E-SMART LEADERBOARD */
/* ========================================== */

/* @ziedanet - VARIABEL WARNA & MODE */
/* ================================== */
:root {
    --color-primary: #7B1FA2;
    --color-primary-light: #9C27B0;
    --color-primary-dark: #4A148C;
    --color-secondary: #FFD700;
    --color-secondary-dark: #FFA000;
    --color-tertiary: #F5F7FA;
    --color-background-main: #FFFFFF;
    --color-background-login: #FFFFFF;
    --color-text-dark: #1A1A1A;
    --color-text-light: #FFFFFF;
    --color-text-muted: #6B7280;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.20);
}

.dark-mode {
    --color-primary: #AB47BC;
    --color-primary-light: #CE93D8;
    --color-primary-dark: #7B1FA2;
    --color-secondary: #FFD54F;
    --color-secondary-dark: #FFA726;
    --color-tertiary: #1E1E2E;
    --color-background-main: #121212;
    --color-background-login: #1E1E2E;
    --color-text-dark: #E0E0E0;
    --color-text-light: #FFFFFF;
    --color-text-muted: #9CA3AF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.7);
}

/* @ziedanet - GAYA UMUM & STRUKTUR */
/* ================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--color-background-main);
    color: var(--color-text-dark);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-grow: 1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* @ziedanet - KOLOM LOGIN (25%) */
/* ============================== */
.kolom-login {
    width: 25%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    z-index: 10;
    position: relative;
    overflow-y: auto;
}

.kolom-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.3;
}

/* @ziedanet - Logo Wrapper dengan Animasi Float */
.app-logo-wrapper {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.app-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* @ziedanet - MODE TOGGLE BUTTON */
/* =============================== */
.mode-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    background: var(--color-background-login);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-md);
}

.mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--color-primary);
    color: var(--color-text-light);
}

.toggle-icon {
    font-size: 0.9rem;
}

.toggle-text {
    font-size: 0.7rem;
}

/* @ziedanet - INFO BUTTON */
/* ======================== */
.info-button {
    position: fixed;
    top: 15px;
    right: 15px;
    background: var(--color-background-login);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.info-button:hover {
    transform: translateY(-2px) rotate(15deg);
    box-shadow: var(--shadow-lg);
    background: var(--color-primary);
    color: var(--color-text-light);
}

.info-icon {
    font-size: 1.3rem;
}

/* @ziedanet - MODAL STYLES */
/* ========================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--color-background-login);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 20px 20px 0 0;
}

.dark-mode .modal-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-light);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-light);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    color: var(--color-text-dark);
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    padding-left: 10px;
}

.version-info {
    background: rgba(123, 31, 162, 0.08);
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.version-info p {
    margin-bottom: 5px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: flex-end;
}

.dark-mode .modal-footer {
    border-top: 2px solid rgba(255, 255, 255, 0.06);
}

.btn-modal-close {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-light);
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
}

.btn-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.4);
}

/* @ziedanet - LOGIN BOX */
/* ===================== */
.login-box {
    background: var(--color-background-login);
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    color: var(--color-text-dark);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.login-box h2 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.login-box p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-weight: 400;
}

.input-group {
    margin-bottom: 12px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background-color: var(--color-background-login);
    color: var(--color-text-dark);
    font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
    transform: translateY(-1px);
}

.input-group input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* @ziedanet - Captcha Placeholder */
.captcha-placeholder {
    height: 50px;
    border: 2px dashed var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--color-primary);
    margin-top: 8px;
    margin-bottom: 10px;
    background: rgba(123, 31, 162, 0.03);
    transition: all 0.3s ease;
}

.captcha-placeholder:hover {
    background: rgba(123, 31, 162, 0.06);
}

/* @ziedanet - Button Login */
.btn-login {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-light);
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.3);
    letter-spacing: 0.3px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 31, 162, 0.4);
}

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

.btn-icon {
    font-size: 0.95rem;
}

/* @ziedanet - KOLOM INFO (75%) */
/* ============================= */
.kolom-info {
    width: 75%;
    background: var(--color-tertiary);
    /* PERBAIKAN: Naikkan padding atas dan ubah centering ke align-top */
    padding: 25px 20px 20px 20px;
    /* Top 25px, others 20px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Konten dimulai dari atas */
    color: var(--color-text-dark);
    transition: background-color 0.4s ease;
    overflow-y: auto;
}

.info-content {
    text-align: center;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* @ziedanet - Header Section */
.header-section {
    /* PERBAIKAN: Tambah margin-top agar judul lebih turun */
    margin-top: 10px;
    margin-bottom: 15px;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-content h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.info-content h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 8px auto;
    line-height: 1.4;
}

/* @ziedanet - Update Info dengan Animasi */
.update-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: rgba(123, 31, 162, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 6px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.update-icon {
    font-size: 0.9rem;
}

.dark-mode .update-info {
    background: rgba(171, 71, 188, 0.15);
    color: var(--color-secondary);
}

/* @ziedanet - LEADERBOARD CONTAINER - 2 BARIS HORIZONTAL */
/* ======================================================= */
.leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.leaderboard-column {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

/* @ziedanet - PLAYER CARD - COMPACT VERTICAL LAYOUT */
/* ================================================== */
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top-width: 4px;
    border-top-style: solid;
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    max-width: 220px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
}

.player-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-width: 6px;
}

/* @ziedanet - PHOTO CONTAINER */
/* ============================ */
.photo-container {
    position: relative;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* @ziedanet - Foto Diperbesar menjadi 75x75px */
.photo-dummy {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border-width: 3px;
    border-style: solid;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.player-card:hover .photo-dummy {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* @ziedanet - Rank Badge dengan Medal Icons */
.rank-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 1.4rem;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* @ziedanet - Rank Number Badge */
.rank-number {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-text-light);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.65rem;
    border: 2px solid var(--color-background-main);
    box-shadow: var(--shadow-sm);
}

/* @ziedanet - CARD CONTENT */
/* ======================== */
.card-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
}

/* @ziedanet - Employee Details */
.employee-details {
    text-align: center;
    width: 100%;
    margin-bottom: 2px;
}

.employee-details .name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.employee-details .nip {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* @ziedanet - SCORE AREA - MODIFIKASI LAYOUT */
/* =========================================== */
.score-area-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Baris 1 & 2: Menggunakan Grid 2 Kolom */
.detail-scores-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}

/* @ziedanet - Baris 3: Total Poin & Capaian/Absensi (Flex Row) */
.summary-scores-stack {
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: 100%;
    margin-top: 5px;
}

/* Score Item Stack (umum) */
.score-item-stack {
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 6px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Penting: Set flex: 1 di sini agar card detail menyesuaikan di grid */
    flex: 1;
}

.dark-mode .score-item-stack {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-item-stack:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* @ziedanet - Score Label & Value */
.score-label {
    display: block;
    font-weight: 500;
    font-size: 0.55rem;
    color: var(--color-text-muted);
    margin-bottom: 2px;
    line-height: 1;
    letter-spacing: 0.2px;
}

.score-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

/* @ziedanet - Total Score & Percentage Score (Summary Baris 3) */
.score-item {
    /* Ganti .total-score, .percentage-score */
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    flex: 1;
    /* Memastikan lebar yang sama untuk Total Poin & Capaian */
}

.score-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.score-value-big {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

/* @ziedanet - Total Score Styling */
.total-score {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-primary-dark);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.total-score .score-label {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* @ziedanet - Percentage Score (Absensi/Capaian) Styling */
.percentage-score {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.percentage-score .score-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* @ziedanet - Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 10px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* @ziedanet - DISCLAIMER & FOOTER */
/* ================================ */
.disclaimer {
    margin-top: 12px;
    font-style: italic;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 14px;
    background: rgba(123, 31, 162, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    line-height: 1.4;
}

/* @ziedanet - Footer */
.info-footer {
    width: 100%;
    text-align: center;
    padding-top: 12px;
    margin-top: 15px;
    border-top: 2px solid rgba(0, 0, 0, 0.06);
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.dark-mode .info-footer {
    border-top: 2px solid rgba(255, 255, 255, 0.06);
}

.info-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.info-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.info-footer a:hover::after {
    width: 100%;
}

/* === ALERT CUSTOM === */
.alert {
    position: relative;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: fadeIn 0.25s ease-in-out;
}

/* === VARIAN WARNA === */
.alert-danger {
    background: #fff3f3;
    border: 1px solid #ffb4b4;
    color: #a70000;
}

/* === LIST STYLE === */
.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert li {
    list-style: disc;
    margin-bottom: 2px;
}

/* === CLOSE BUTTON === */
.alert .close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 14px;
    color: #a70000;
    cursor: pointer;
    transition: color 0.2s ease;
}

.alert .close:hover {
    color: #ff0000;
}

/* === ANIMASI === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* @ziedanet - MEDIA QUERY - RESPONSIVE */
/* ===================================== */
@media (max-width: 1400px) {
    .player-card {
        max-width: 200px;
    }

    .info-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .player-card {
        max-width: 180px;
    }

    .employee-details .name {
        font-size: 0.8rem;
    }

    .photo-dummy {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .kolom-login {
        width: 100%;
        padding: 25px 20px;
    }

    .kolom-info {
        width: 100%;
        padding: 25px 20px;
        justify-content: flex-start;
        /* Ensure content starts from the top */
    }

    .leaderboard-column {
        flex-wrap: wrap;
        gap: 10px;
    }

    .player-card {
        max-width: 170px;
    }
}

@media (max-width: 768px) {
    .info-content h1 {
        font-size: 1.3rem;
    }

    .info-content h3 {
        font-size: 0.75rem;
    }

    .update-info {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .leaderboard-container {
        gap: 10px;
    }

    .leaderboard-column {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .player-card {
        max-width: 90%;
    }

    .mode-toggle {
        padding: 6px 10px;
    }

    .toggle-text {
        display: none;
    }

    .info-button {
        width: 35px;
        height: 35px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {

    .kolom-login,
    .kolom-info {
        padding: 20px 15px;
    }

    .player-card {
        max-width: 100%;
    }

    .mode-toggle {
        top: 10px;
        left: 10px;
    }

    .info-button {
        top: 10px;
        right: 10px;
    }
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px; /* jarak antara gambar dan tombol */
    margin-top: 5px;
}

.captcha-image {
    border-radius: 6px;
    height: 40px; /* biar proporsional */
}

.captcha-reload-btn {
    background-color: #7B1FA2;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-reload-btn:hover {
    background-color: #7B1FA2;
}

.captcha-reload-btn:active {
    background-color: #7B1FA2;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


