/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --merah: #e74c3c;
    --merah-dark: #c0392b;
    --merah-light: #f1948a;
    --merah-gradient: linear-gradient(135deg, #e74c3c, #c0392b);
    --putih: #ffffff;
    --emas: #f1c40f;
    --emas-dark: #f39c12;
    --emas-gradient: linear-gradient(135deg, #f1c40f, #f39c12);
    --hijau: #27ae60;
    --hijau-dark: #1e8449;
    --biru: #3498db;
    --biru-dark: #2e86c1;
    --ungu: #9b59b6;
    --dark: #2c3e50;
    --dark-light: #34495e;
    --gray: #7f8c8d;
    --gray-light: #ecf0f1;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(231, 76, 60, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font: 'Segoe UI', 'Poppins', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 30%, #fff0e6 60%, #fef9e7 100%);
    min-height: 100vh;
    padding: 15px;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   BACKGROUND EFFECTS
   ======================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(241, 196, 15, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(52, 152, 219, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   PARTICLES
   ======================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 20px;
    animation: float-particle linear infinite;
    opacity: 0.3;
    user-select: none;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
        transform: translateY(90vh) rotate(36deg) scale(0.9);
    }
    90% {
        opacity: 0.3;
        transform: translateY(10vh) rotate(324deg) scale(1.1);
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   HEADER
   ======================================== */
header {
    background: var(--merah-gradient);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '🇮🇩';
    position: absolute;
    font-size: 200px;
    right: -50px;
    top: -80px;
    opacity: 0.1;
    transform: rotate(-15deg);
    animation: header-flag-float 20s ease-in-out infinite;
}

header::after {
    content: '🇮🇩';
    position: absolute;
    font-size: 150px;
    left: -40px;
    bottom: -60px;
    opacity: 0.1;
    transform: rotate(15deg);
    animation: header-flag-float 25s ease-in-out infinite reverse;
}

@keyframes header-flag-float {
    0%, 100% { transform: rotate(-15deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9em;
    margin-bottom: 15px;
    animation: pulse-badge 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

.header-content h1 {
    font-size: 3em;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
    letter-spacing: 2px;
    animation: slideDown 0.8s ease;
}

.header-content h1 .highlight {
    display: inline-block;
    animation: wave-flag 3s ease-in-out infinite;
}

@keyframes wave-flag {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.05);
    }
    75% {
        transform: rotate(10deg) scale(1.05);
    }
}

.motto {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    animation: slideUp 0.8s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-decorations {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.header-decorations span {
    font-size: 2em;
    animation: bounce-flag 2s ease-in-out infinite;
    display: inline-block;
}

.header-decorations span:nth-child(2) { animation-delay: 0.3s; }
.header-decorations span:nth-child(3) { animation-delay: 0.6s; }
.header-decorations span:nth-child(4) { animation-delay: 0.9s; }
.header-decorations span:nth-child(5) { animation-delay: 1.2s; }

@keyframes bounce-flag {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.main-nav {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--emas);
    transition: var(--transition);
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.9em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--emas);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 10px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 70%;
}

.main-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.main-nav a.active {
    color: white;
    background: rgba(231, 76, 60, 0.3);
}

.main-nav a.admin-link {
    background: var(--merah);
    color: white;
    font-weight: 600;
}

.main-nav a.admin-link:hover {
    background: var(--merah-dark);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px 15px;
    transition: var(--transition);
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
main {
    padding: 30px;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    color: var(--dark);
    font-size: 2em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--merah), var(--emas));
    border-radius: 10px;
    transition: var(--transition);
}

.section:hover .section-title::after {
    width: 80px;
}

.section-icon {
    font-size: 1.2em;
}

.section-badge {
    font-size: 0.4em;
    padding: 4px 16px;
    border-radius: 50px;
    background: var(--merah-gradient);
    color: white;
    font-weight: 600;
    animation: pulse-badge 2s ease-in-out infinite;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1em;
    margin-top: 15px;
}

/* ========================================
   STATS GRID
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.stat-card {
    background: white;
    padding: 25px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--merah-gradient);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--merah);
}

.stat-card:hover::before {
    height: 6px;
}

.stat-card .stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
    animation: stat-icon-float 3s ease-in-out infinite;
}

@keyframes stat-icon-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.stat-card .stat-number {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--dark);
    display: block;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: 500;
}

.stat-card .stat-card-bg {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, transparent 70%);
    transition: var(--transition);
}

.stat-card:hover .stat-card-bg {
    transform: scale(1.5);
}

/* ========================================
   LOMBA ITEMS
   ======================================== */
.lomba-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lomba-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
    animation: lomba-item-in 0.6s ease forwards;
}

.lomba-item:hover {
    transform: translateX(8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

@keyframes lomba-item-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lomba-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    background: var(--merah-gradient);
    color: white;
    font-weight: 800;
    font-size: 1.1em;
    padding: 0 10px;
    flex-shrink: 0;
}

.lomba-item-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lomba-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lomba-item-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.lomba-item-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.lomba-item-pemenang {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lomba-item-arrow {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #ddd;
    transition: var(--transition);
    flex-shrink: 0;
}

.lomba-item:hover .lomba-item-arrow {
    color: var(--merah);
    transform: translateX(5px);
}

/* ========================================
   STATUS BADGE
   ======================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
}

.status-badge .status-icon {
    font-size: 1em;
}

.status-belum-dimulai {
    background: var(--gray-light);
    color: var(--gray);
}

.status-berlangsung {
    background: var(--emas-gradient);
    color: white;
    animation: pulse-status 1.5s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(241, 196, 15, 0.5);
    }
}

.status-selesai {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

/* ========================================
   JUARA BADGE
   ======================================== */
.juara-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8em;
    font-weight: 600;
    transition: var(--transition);
    animation: juara-pop 0.5s ease;
}

@keyframes juara-pop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.juara-item:hover {
    transform: scale(1.05);
}

.juara-item .medal {
    font-size: 1.1em;
}

.juara-item .juara-label {
    font-size: 0.8em;
    opacity: 0.8;
}

.juara-item .juara-nama {
    font-weight: 700;
}

.juara-item.juara-1 {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #7f6000;
    box-shadow: 0 2px 10px rgba(241, 196, 15, 0.3);
}

.juara-item.juara-2 {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(189, 195, 199, 0.3);
}

.juara-item.juara-3 {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
}

.no-pemenang {
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

/* ========================================
   PESERTA
   ======================================== */
.peserta-container {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.peserta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.peserta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--biru), var(--biru-dark));
    color: white;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
    opacity: 0;
    transform: scale(0.8);
    animation: peserta-tag-in 0.5s ease forwards;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

@keyframes peserta-tag-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.peserta-tag:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.peserta-tag.special {
    background: linear-gradient(135deg, var(--emas), var(--emas-dark));
    color: #7f6000;
    font-weight: 700;
    animation: peserta-special 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(241, 196, 15, 0.3);
}

@keyframes peserta-special {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(241, 196, 15, 0.3);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
        box-shadow: 0 4px 30px rgba(241, 196, 15, 0.5);
    }
}

.peserta-tag-icon {
    font-size: 0.8em;
}

.peserta-total {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--gray-light);
}

.peserta-total-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: var(--merah);
    animation: total-pop 1s ease;
}

@keyframes total-pop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.peserta-total-label {
    font-size: 0.9em;
    color: var(--gray);
}

/* ========================================
   KONSUMSI
   ======================================== */
.konsumsi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.konsumsi-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: konsumsi-card-in 0.6s ease forwards;
}

@keyframes konsumsi-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.konsumsi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.konsumsi-card-icon {
    font-size: 2.5em;
    flex-shrink: 0;
    animation: konsumsi-icon-bounce 3s ease-in-out infinite;
}

@keyframes konsumsi-icon-bounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(-5deg);
    }
}

.konsumsi-card-content {
    flex: 1;
    min-width: 0;
}

.konsumsi-card-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.konsumsi-card-donatur {
    font-size: 0.85em;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.donatur-icon {
    animation: donatur-heart 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes donatur-heart {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.konsumsi-card-decoration {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(241, 196, 15, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
}

.konsumsi-card:hover .konsumsi-card-decoration {
    transform: scale(1.5);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '🇮🇩';
    position: absolute;
    font-size: 100px;
    opacity: 0.05;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: footer-flag-float 15s ease-in-out infinite;
}

@keyframes footer-flag-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(10deg) scale(1.05); }
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-content p {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.footer-content .footer-year {
    font-size: 0.9em;
    opacity: 0.7;
}

/* ========================================
   ADMIN PANEL
   ======================================== */
.admin-container {
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--emas);
}

.admin-header h1 {
    color: var(--dark);
    font-size: 1.8em;
}

.admin-header .admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.admin-tabs .btn {
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.admin-tabs .btn:hover {
    transform: translateY(-3px);
}

.admin-tabs .btn-primary {
    background: var(--merah);
    color: white;
}

.admin-tabs .btn-success {
    background: var(--hijau);
    color: white;
}

.admin-tabs .btn-info {
    background: var(--biru);
    color: white;
}

.admin-tabs .btn-warning {
    background: var(--emas);
    color: var(--dark);
}

.admin-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.admin-section h3 {
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.admin-form .form-group {
    flex: 1;
    min-width: 180px;
}

.admin-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--dark);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95em;
    background: white;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--merah);
    outline: none;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--merah);
    color: white;
}
.btn-success {
    background: var(--hijau);
    color: white;
}
.btn-danger {
    background: var(--merah);
    color: white;
}
.btn-warning {
    background: var(--emas);
    color: var(--dark);
}
.btn-info {
    background: var(--biru);
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85em;
}

/* ========================================
   TABLES
   ======================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 10px 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
}

table thead {
    background: var(--dark);
    color: white;
}

table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--gray-light);
}

table tbody tr {
    transition: var(--transition);
}

table tbody tr:hover {
    background: rgba(231, 76, 60, 0.05);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   LOGIN
   ======================================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--merah-gradient);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '🇮🇩';
    font-size: 300px;
    position: absolute;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: login-flag-float 20s ease-in-out infinite;
}

@keyframes login-flag-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(10deg); }
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease;
}

.login-box .login-icon {
    text-align: center;
    font-size: 3em;
    margin-bottom: 10px;
}

.login-box h2 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 5px;
}

.login-box .login-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
}

.login-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 1em;
    transition: var(--transition);
}

.login-box input:focus {
    border-color: var(--merah);
    outline: none;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.login-box .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1.1em;
}

/* ========================================
   ALERTS & MESSAGES
   ======================================== */
.error-message {
    background: var(--merah);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.success-message {
    background: var(--hijau);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    animation: slideUp 0.5s ease;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideInRight 0.5s ease;
    font-weight: 500;
    max-width: 350px;
}

.toast-success {
    background: var(--hijau);
    color: white;
}

.toast-error {
    background: var(--merah);
    color: white;
}

.toast-info {
    background: var(--biru);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .header-content h1 {
        font-size: 2.2em;
    }
    
    .section {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    header {
        padding: 25px 20px;
    }
    
    .header-content h1 {
        font-size: 1.8em;
    }
    
    .header-decorations span {
        font-size: 1.5em;
    }
    
    .motto {
        font-size: 1em;
    }
    
    .main-nav {
        padding: 10px 15px;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .main-nav a {
        padding: 8px 14px;
        font-size: 0.8em;
    }
    
    .main-nav a .nav-label {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    main {
        padding: 15px;
    }
    
    .section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.4em;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-title .section-badge {
        font-size: 0.6em;
        padding: 3px 12px;
    }
    
    .lomba-item {
        flex-direction: column;
    }
    
    .lomba-item-number {
        min-width: unset;
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .lomba-item-arrow {
        display: none;
    }
    
    .lomba-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lomba-item-status {
        width: 100%;
    }
    
    .lomba-item-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 18px 15px;
    }
    
    .stat-card .stat-number {
        font-size: 1.5em;
    }
    
    .peserta-tag {
        font-size: 0.8em;
        padding: 6px 14px;
    }
    
    .konsumsi-grid {
        grid-template-columns: 1fr;
    }
    
    .konsumsi-card {
        padding: 15px;
    }
    
    .admin-container {
        padding: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 1.4em;
    }
    
    .admin-tabs {
        justify-content: center;
    }
    
    .admin-tabs .btn {
        padding: 8px 16px;
        font-size: 0.85em;
    }
    
    .admin-section {
        padding: 15px;
    }
    
    .admin-form {
        flex-direction: column;
    }
    
    .admin-form .form-group {
        width: 100%;
        min-width: unset;
    }
    
    table {
        font-size: 0.85em;
    }
    
    table th,
    table td {
        padding: 8px 12px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .footer-content p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.4em;
    }
    
    .header-decorations span {
        font-size: 1.2em;
    }
    
    .header-badge {
        font-size: 0.7em;
        padding: 6px 16px;
    }
    
    .main-nav a {
        padding: 6px 10px;
        font-size: 0.7em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card .stat-icon {
        font-size: 2em;
    }
    
    .stat-card .stat-number {
        font-size: 1.3em;
    }
    
    .lomba-item .lomba-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .juara-item {
        font-size: 0.7em;
        padding: 3px 10px;
    }
    
    .section-title {
        font-size: 1.1em;
    }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--merah-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--merah-dark);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}
.mt-20 {
    margin-top: 20px;
}
.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}
.mb-20 {
    margin-bottom: 20px;
}
.mb-30 {
    margin-bottom: 30px;
}

.gap-10 {
    gap: 10px;
}
.gap-20 {
    gap: 20px;
}

.flex {
    display: flex;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hidden {
    display: none !important;
}
.visible {
    display: block !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .main-nav,
    .particles,
    .header-decorations {
        display: none !important;
    }
    
    .section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #eee;
    }
}