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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    color: #1f2937;
}

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

/* Navigation */
.navbar {
    background: white;
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #4f46e5, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links a {
    text-decoration: none;
    color: #6b7280;
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background: linear-gradient(135deg, #4f46e5, #dc2626);
    color: white;
}

/* Headings */
h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 30px;
    border-left: 3px solid #4f46e5;
    padding-left: 15px;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.kpi-card.blue { border-top: 4px solid #4f46e5; }
.kpi-card.green { border-top: 4px solid #10b981; }
.kpi-card.orange { border-top: 4px solid #f59e0b; }

.kpi-icon { font-size: 2rem; margin-bottom: 10px; }
.kpi-value { font-size: 2rem; font-weight: bold; margin-bottom: 5px; }
.kpi-label { color: #6b7280; font-size: 0.9rem; margin-bottom: 8px; }
.kpi-trend { font-size: 0.8rem; }
.kpi-trend.up { color: #10b981; }
.kpi-trend.down { color: #ef4444; }

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Bar Chart */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    width: 50px;
    font-weight: 500;
}

.bar-fill {
    height: 35px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 8px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 0.8rem;
}

.bar-value {
    min-width: 60px;
    font-weight: 500;
}

/* Two Columns */
.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

/* Filter */
.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 1rem;
}

.filter-result {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.filter-result p {
    margin: 5px 0;
}

/* Slider */
.slider {
    width: 100%;
    margin: 15px 0;
}

.projection-box {
    background: linear-gradient(135deg, #4f46e5, #dc2626);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.projection-box strong {
    font-size: 1.5rem;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.data-table tr:hover {
    background: #f9fafb;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.insight-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border-left: 4px solid #4f46e5;
    transition: transform 0.3s;
}

.insight-card:hover {
    transform: translateX(5px);
}

.insight-icon { font-size: 2rem; margin-bottom: 10px; }
.insight-card h3 { margin-bottom: 10px; color: #1f2937; }
.insight-card p { color: #6b7280; margin-bottom: 12px; line-height: 1.5; }

.recommendation {
    background: #fef3c7;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #92400e;
}

/* Summary List */
.summary-list {
    list-style: none;
    padding-left: 0;
}

.summary-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Buttons */
.nav-buttons {
    text-align: center;
    margin: 20px 0;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5, #dc2626);
    color: white;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 0.8rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links a {
        display: inline-block;
        margin: 5px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
}
