:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-sidebar: #181818;
    --primary: #d32f2f;
    --primary-hover: #b71c1c;
    --accent: #FFD700;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border: #333333;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Header */
.top-nav {
    height: 60px;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--primary);
}

.top-nav nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.live-btn {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.nav-item.live-btn:hover {
    background: var(--primary);
    color: white;
}

/* Layout */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 30px;
}

.sidebar-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.date-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-family: inherit;
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    margin-bottom: 10px;
}

.province-list {
    list-style: none;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.province-list li {
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.province-list li:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.province-list li.active {
    background-color: var(--primary);
    color: white;
}

.province-group-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #FFD700;
    /* Gold */
    background-color: rgba(255, 255, 255, 0.05);
    /* Slight box */
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    cursor: default !important;
    pointer-events: none;
    /* Make unclickable */
    border-left: 3px solid var(--primary);
}

.province-group-title:hover {
    background-color: transparent !important;
}

/* Content */
.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: radial-gradient(circle at top right, #1a0505, var(--bg-dark));
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    font-size: 2rem;
    font-weight: 300;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Result Card */
.result-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    /* Glassmorphism effect */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-header {
    background: rgba(211, 47, 47, 0.1);
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    color: var(--primary);
    margin: 0;
}

.card-body {
    padding: 15px;
}

/* Mini Table inside Card */
.mini-table {
    width: 100%;
    border-collapse: collapse;
}

.mini-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.mini-table tr:last-child td {
    border-bottom: none;
}

.prize-name {
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 30%;
}

.prize-value {
    text-align: right;
    font-family: 'Roboto', monospace;
    font-weight: 600;
    letter-spacing: 1px;
}

.special-prize-row .prize-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.loading-state {
    color: var(--text-muted);
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
}

.dashboard-footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.5;
}