* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0a0a0f;
    color: #eef2ff;
    height: 100vh;
    overflow: hidden;
}

/* Layout utama seperti Deepseek */
.app {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* SIDEBAR KIRI */
.sidebar {
    width: 260px;
    background: #111114;
    border-right: 1px solid #23232e;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-left: 12px;
}

.logo-icon {
    background: #1e88e5;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #fff, #90caf9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #b9c3d4;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.nav-item i {
    width: 22px;
    font-size: 1.2rem;
}

.nav-item.active {
    background: #1e293b;
    color: #3b82f6;
}

.nav-item:not(.active):hover {
    background: #1a1a22;
    color: #eef2ff;
}

.coming-soon {
    font-size: 12px;
    background: #23232e;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
    color: #7e8a9b;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
}

/* Header */
.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.page-header p {
    color: #8b9bb0;
    margin-top: 6px;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #111114;
    border: 1px solid #23232e;
    border-radius: 24px;
    padding: 20px 20px;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #2d3748;
}

.stat-title {
    font-size: 14px;
    color: #8b9bb0;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-unit {
    font-size: 14px;
    color: #6b7b8f;
    font-weight: normal;
}

/* Toggle Group untuk Elo */
.elo-container {
    background: #0f0f14;
    border: 1px solid #23232e;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 32px;
}

.elo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-title {
    font-size: 16px;
    font-weight: 500;
    display: flex;
 align-items: center;
    gap: 10px;
}

.toggle-group {
    background: #111114;
    border: 1px solid #23232e;
    border-radius: 40px;
    padding: 4px;
    display: inline-flex;
}

.toggle-btn {
    padding: 8px 20px;
    border-radius: 32px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: none;
    color: #b9c3d4;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-btn.active {
    background: #1e88e5;
    color: white;
    box-shadow: 0 2px 6px rgba(30,136,229,0.3);
}

.placeholder-message {
    background: #1a1c25;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    color: #8192aa;
    font-size: 14px;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.ranking-box {
    background: #0f0f14;
    border: 1px solid #23232e;
    border-radius: 24px;
    padding: 20px;
}

.ranking-header {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
}

.rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1e1e26;
}

.rank-country {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-number {
    font-weight: 600;
    width: 28px;
    color: #6b7b8f;
}

.rank-percent {
    font-weight: 600;
    color: #3b82f6;
}

.badge-worst {
    color: #f97316;
}

.data-table {
    background: #0f0f14;
    border: 1px solid #23232e;
    border-radius: 24px;
    overflow-x: auto;
    padding: 0px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #23232e;
}

.table-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.table-header .info {
    font-size: 12px;
    color: #6b7b8f;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 16px;
    color: #8b9bb0;
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid #23232e;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #1e1e26;
    font-size: 13px;
}

.country-badge {
    background: #1e293b;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Style untuk flag-icons */
.fi {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.loading {
    text-align: center;
    padding: 60px;
    color: #5f6f88;
}

footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #4a5568;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 8px;
}

.correct-yes {
    color: #10b981;
    font-weight: 500;
}

.correct-no {
    color: #f97316;
    font-weight: 500;
}

/* ============ STYLING UNTUK ACTIVITIES PAGE ============ */
.filter-bar {
    background: #0f0f14;
    border: 1px solid #23232e;
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.filter-group label {
    font-size: 11px;
    color: #8b9bb0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select, .filter-group input {
    background: #1a1c25;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 8px 12px;
    color: #eef2ff;
    font-size: 13px;
    cursor: pointer;
}

.filter-group select:focus, .filter-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.reset-btn {
    background: #2d3748;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    color: #eef2ff;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.reset-btn:hover {
    background: #3b82f6;
}

.action-btn {
    background: #1e293b;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.action-btn:hover {
    background: #3b82f6;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
}

.pagination button {
    background: #1e293b;
    border: 1px solid #2d3748;
    border-radius: 10px;
    padding: 8px 16px;
    color: #eef2ff;
    cursor: pointer;
    transition: 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #3b82f6;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination span {
    color: #8b9bb0;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #111114;
    border: 1px solid #2d3748;
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #23232e;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: #8b9bb0;
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: #f97316;
}

.modal-body {
    padding: 24px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
}

.detail-section p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.detail-section .label {
    color: #8b9bb0;
    font-size: 12px;
    display: inline-block;
    width: 100px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.detail-card {
    background: #1a1c25;
    border-radius: 16px;
    padding: 16px;
}

.detail-card h4 {
    font-size: 14px;
    color: #3b82f6;
    margin-bottom: 12px;
}

.map-container {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
}

#detailMap {
    height: 300px;
    width: 100%;
    border-radius: 12px;
}

.street-view-link {
    display: inline-block;
    margin-top: 12px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.street-view-link:hover {
    text-decoration: underline;
}

/* Leaflet map */
.leaflet-container {
    background: #1a1c25;
}