* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.cabor-title {
        font-family: 'Poppins', sans-serif; /* Menggunakan font Poppins yang sudah di-load */
        font-weight: 700;                  /* Membuat teks menjadi sangat tebal */
        font-size: 16px;                   /* Mengatur ukuran huruf */
        color: #333333;                    /* Mengatur warna huruf */
    }

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.header-content {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.05rem;
    color: #444;
    position: relative;
    z-index: 2;
}

/* KUSTOMISASI CONTAINER LOGO */
.logo-box {
    display: none;
    /* Sembunyikan default (layar kecil & menengah) */
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
}

.logo-box img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    background: #ffffff;
}

/* HANYA TAMPIL DI LAYAR BESAR (Desktop >= 992px) */
@media (min-width: 992px) {
    .logo-box {
        display: flex;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card.gold {
    border-top: 5px solid #ffd700;
}

.stat-card.silver {
    border-top: 5px solid #c0c0c0;
}

.stat-card.bronze {
    border-top: 5px solid #cd7f32;
}

.stat-card.total {
    border-top: 5px solid #667eea;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-card.gold .stat-icon {
    color: #ffd700;
}

.stat-card.silver .stat-icon {
    color: #c0c0c0;
}

.stat-card.bronze .stat-icon {
    color: #cd7f32;
}

.stat-card.total .stat-icon {
    color: #667eea;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card.gold .stat-number {
    color: #b8860b;
}

.stat-card.silver .stat-number {
    color: #808080;
}

.stat-card.bronze .stat-number {
    color: #8b4513;
}

.stat-card.total .stat-number {
    color: #5a67d8;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.table-container {
    padding: 0 30px 40px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 800px;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

td {
    padding: 18px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

tr:hover td {
    background: #f8f9ff;
}

.country {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.medal {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    min-width: 60px;
}

.gold {
    color: #ffd700;
}

.silver {
    color: #c0c0c0;
}

.bronze {
    color: #cd7f32;
}

.total {
    color: #667eea;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #fafbff;
}

.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.4rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }

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