:root {
    --primary-gradient: linear-gradient(135deg, #3477F2 5%, #27AEB9 90%);
    --bg-color: #f3f4f6;
    --card-bg: rgba(255, 255, 255, 0.75);
    --border-color: rgba(255, 255, 255, 0.5);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #338ae6;
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--primary-gradient);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.header-logo {
    max-width: 300px;
    /* Lebar maksimal agar tidak terlalu besar di PC */
    width: 80%;
    /* Skala responsif di mobile */
    height: auto;
    object-fit: contain;
}

.subtitle {
    font-weight: 300;
    opacity: 0.9;
    margin-top: 5px;
}

/* Generic layout */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Filters */
.filters-section {
    padding: 24px;
}

.filters-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    user-select: none;
}

.checkbox-label:hover {
    border-color: var(--accent-purple);
    background: #f5f3ff;
}

.checkbox-label input {
    accent-color: var(--accent-blue);
    width: 16px;
    height: 16px;
}

/* Summary Cards */
.summary-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .summary-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 20px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.card-total .card-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.card-public .card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.card-private .card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Charts */
.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 1024px) {
    .charts-section {
        grid-template-columns: 2fr 1fr;
    }
}

.chart-container {
    padding: 24px;
}

.chart-container h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.canvas-wrapper {
    position: relative;
    height: 350px;
    width: 100%;
}

/* Data Table */
.table-section {
    padding: 24px;
    overflow: hidden;
}

.table-header h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background: #f1f5f9;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.status-negeri {
    background: #d1fae5;
    color: #065f46;
}

.status-swasta {
    background: #fef3c7;
    color: #92400e;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.hidden {
    display: none;
}