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

/* BASE */
body {
    font-family: Inter, system-ui, sans-serif;
    background:
        radial-gradient(circle at top, rgba(34,197,94,0.08), transparent 40%),
        linear-gradient(180deg, #111827, #0f172a);
    background-attachment: fixed;
    color: #e5e7eb;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* LAYOUT */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    padding: 20px 0;
}

/* HEADER */
.app-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* WRAPPER (CENTER 1200px) */
.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 36px;
}

/* LOGO */
.logo {
    font-weight: 600;
    font-size: 18px;
}

/* NAV */
.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
}

.nav a:hover {
    color: #22c55e;
}

/* CONTENT TITLE */
h1 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* CARD */
.card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 15px;
    border-radius: 10px;
}

/* FOOTER */
.app-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: #9ca3af;
}

/* WRAPPER (SAMA HEADER) */
.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* FLEX */
.footer-inner {
    display: flex;
    align-items: center;
}

/* LEFT */
.footer-left {
    display: flex;
    margin-left: 18px;
    line-height: 1;
    opacity: 0.8;
}

/* RIGHT */
.footer-right {
    margin-left: auto;
    align-items: center;
    margin-right: 18px;
    display: flex;
    gap: 15px;
}

.footer-right a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-right a:hover {
    color: #22c55e;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        height: auto;
        padding: 10px 0;
    }

    .nav {
        width: 100%;
        justify-content: space-around;
    }

    .footer-inner {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

}
/* AUTH PAGE */
.auth-body {
    background: radial-gradient(circle at top, #0f172a, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* CONTAINER */
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* CARD */
.auth-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(12px);
    text-align: center;
}

/* LOGO */
.auth-logo img {
    width: 60px;
    margin-bottom: 10px;
}

.auth-logo h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* TITLE */
.auth-title {
    margin-bottom: 20px;
    font-size: 16px;
}

/* INPUT */
.auth-card input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    color: white;
}

/* BUTTON */
.auth-card button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #22c55e;
    color: black;
    font-weight: 600;
    cursor: pointer;
}

.auth-card button:hover {
    background: #16a34a;
}

/* FOOTER */
.auth-footer {
    margin-top: 15px;
    font-size: 12px;
    color: #9ca3af;
}

.auth-footer a {
    color: #22c55e;
}
.header-inner {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* LEFT */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* CENTER */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 15px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 6px;
}
.logo img {
    height: 16px;
}

/* NAV */
.nav-dynamic select {
    background: rgba(255,255,255,0.05);
    border: none;
    color: white;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 6px;
}

/* RIGHT */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    font-size: 12px;
}

/* BUTTON */
.btn {
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

.btn:hover {
    background: rgba(255,255,255,0.1);
}

/* STAT */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.stat-box {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 10px 12px;
}

.stat-label {
    font-size: 11px;
    color: #cbd5f5;
}
.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9; /* 🔥 lebih jelas tapi gak silau */
}
.stat-extra {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.2;
}
/* row layout */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* kiri */
.stat-left {
    display: flex;
    flex-direction: column;
}

/* kanan */
.stat-right {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
}
.green {
    color: #22c55e;
}

.red {
    color: #ef4444;
}

/* label kecil (TOP / PEAK) */
.stat-tag {
    font-size: 10px;
    opacity: 0.6;
}

/* tooltip simple */
.stat-tooltip {
    position: relative;
    cursor: help;
}

.stat-tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 6px;
    font-size: 10px;
    border-radius: 4px;
    white-space: nowrap;
}
