/* ===========================================
   GLOBAL RESET & ROOT COLOR
=========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: "Inter", sans-serif;
}

:root {
    --primary: #00a862;
    --primary-dark: #018a51;

    --blue: #004b8d;
    --blue-soft: #e6f4ff;

    --bg: #f5f7fa;
    --white: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;

    --border: #d1d5db;
    --border-light: #e5e7eb;

    --card-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

/* Body */
body {
    background: var(--bg);
    color: var(--text);
    padding-bottom: 120px;
    line-height: 1.45;
}

/* ===========================================
   HERO HEADER (WHITE CLEAN STYLE)
=========================================== */
.hero-white {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 25px 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hero-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 10px;
}

.hero-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: var(--blue-soft);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
}

.hero-tag.green {
    background: #e7f8ef;
    color: var(--primary-dark);
}

.hero-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* ===========================================
   MAIN CONTAINER
=========================================== */
.main-container {
    max-width: 1100px;
    margin: 15px auto 0;
    padding: 0 15px;
}

/* ===========================================
   PANEL CARD PUTIH
=========================================== */
.panel-white {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: var(--card-shadow);
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

/* ===========================================
   CHAMPIONS / JUARA
=========================================== */
.champions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.champ-card {
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.champ-card.gold { border-color: #f7d046; }
.champ-card.silver { border-color: #c0c0c0; }
.champ-card.bronze { border-color: #cd7f32; }

.champ-pos {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.champ-name {
    font-size: 17px;
    font-weight: 800;
}

.champ-club {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

/* ===========================================
   TOP 10 & RANKING LIST
=========================================== */
.ranking-list {
    list-style: none;
    margin-top: 8px;
}

.rank-item {
    background: var(--white);
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: var(--card-shadow);
}

.rank-num {
    width: 40px;
    font-weight: 700;
    color: var(--text-light);
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-size: 14px;
    font-weight: 700;
}

.rank-club {
    font-size: 12px;
    color: var(--text-light);
}

.rank-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rank-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    object-fit: contain;
}

.rank-league {
    font-size: 11px;
    color: var(--text-light);
}

/* ===========================================
   ROUNDS LAYOUT
=========================================== */
.rounds-wrapper {
    display: grid;
    gap: 18px;
}

.round-card {
    border-radius: 14px;
}

.round-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.round-title {
    font-weight: 700;
    font-size: 15px;
}

.round-count {
    font-size: 12px;
    color: var(--text-light);
}

/* ===========================================
   MATCH CARD (Putih, Clean)
=========================================== */
.match-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: var(--card-shadow);
}

.match-card.completed {
    border-color: var(--primary);
    background: #f3fcf6;
}

.match-tv {
    font-size: 11px;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-weight: 700;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.team-row.win .team-name { color: var(--primary-dark); }
.team-row.lose .team-name {
    color: #dc2626;
    text-decoration: line-through;
}

.team-info {
    flex: 1;
}

.team-name {
    font-weight: 700;
    font-size: 14px;
}

.team-club-center {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin: 4px 0 6px;
}

.team-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.team-league {
    font-size: 11px;
    color: var(--text-light);
}

.team-score {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    padding: 5px 0;
    border-radius: 6px;
    background: var(--blue-soft);
    color: var(--blue);
}

.vs-divider {
    text-align: center;
    font-size: 12px;
    margin: 4px 0;
    color: var(--text-light);
}

/* ===========================================
   BYE
=========================================== */
.team-row.bye .team-name {
    color: var(--blue);
}

.team-row.bye .small {
    font-size: 11px;
}

/* ===========================================
   TOOLBOX
=========================================== */
.toolbox-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 10px 8px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.toolbox-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.toolbox-btn {
    border: 1px solid var(--border-light);
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}

.toolbox-btn.green {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===========================================
   UTILITIES
=========================================== */
.info-center {
    text-align: center;
    margin-top: 12px;
}

.muted {
    color: var(--text-light);
}

.link-blue {
    color: var(--blue);
    font-weight: 700;
}

/* ===========================================
   HIDE COMPLETED MATCHES (IMPORTANT)
=========================================== */
body.hide-completed .match-card.completed {
    display: none !important;
}

/* ============================================
   FRIENDLY ADMIN THEME EXTENSIONS
============================================ */

/* Soft bubble panels */
.panel-white {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.04),
        0 8px 20px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.panel-white:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 12px rgba(0,0,0,0.06),
        0 12px 26px rgba(0,0,0,0.08);
}

/* Bubble accents */
.panel-white::before {
    content: "";
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 168, 98, 0.12);
    border-radius: 50%;
    filter: blur(8px);
    z-index: -1;
    transition: 0.3s;
}

.panel-white:hover::before {
    background: rgba(0, 168, 98, 0.18);
    transform: scale(1.1);
}

/* Soft bubble buttons */
.toolbox-btn {
    border-radius: 14px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 2px 5px rgba(0,0,0,0.06),
        inset 0 0 0 rgba(0,0,0,0);
    transition: 0.25s ease;
}

.toolbox-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px rgba(0,0,0,0.08),
        inset 0 0 0 rgba(0,0,0,0);
}

.toolbox-btn.green {
    background: linear-gradient(to bottom right, #00a862, #009b5a);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow:
        0 4px 12px rgba(0,168,98,0.35);
}

.toolbox-btn.green:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 6px 16px rgba(0,168,98,0.45);
}

/* Smooth input fields */
.toolbox-btn[type="text"], 
.toolbox-btn[type="number"],
input.toolbox-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    transition: 0.2s;
}

.toolbox-btn[type="text"]:focus,
.toolbox-btn[type="number"]:focus {
    border-color: #00a862;
    box-shadow: 0 0 8px rgba(0,168,98,0.25);
    outline: none;
}

/* Ranking bubbles */
.rank-item {
    border-radius: 18px;
    padding: 12px;
    transition: .25s ease;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Header bubble highlight */
.hero-white {
    position: relative;
    overflow: hidden;
}

.hero-white::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: rgba(0,75,141,0.12);
    border-radius: 50%;
    filter: blur(12px);
}

