:root {
    --bg-dark: #1e1e24;
    --bg-panel: #2b2b36;
    --primary: #5c62ec;
    --text-white: #ffffff;
    --text-gray: #aab2bd;
    --accent-green: #00d084;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }

body { background-color: var(--bg-dark); color: var(--text-white); height: 100vh; overflow: hidden; }

/* Dashboard Layout */
.app-container { display: grid; grid-template-columns: 250px 1fr; height: 100vh; }

/* Sidebar */
.sidebar { background-color: var(--bg-panel); padding: 20px; border-right: 1px solid #3e3e4a; }
.logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 40px; color: var(--text-white); }
.nav-label { color: var(--text-gray); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 10px; }

.nav-btn {
    display: block; width: 100%; padding: 12px; text-align: left;
    background: none; border: none; color: var(--text-gray);
    cursor: pointer; font-size: 1rem; border-radius: 8px; transition: 0.2s;
}
.nav-btn:hover { background-color: rgba(255,255,255,0.05); color: white; }
.nav-btn.active { background-color: var(--primary); color: white; }

/* Main Content */
.main-content { padding: 30px; overflow-y: auto; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.search-box input {
    background: var(--bg-panel); border: 1px solid #3e3e4a; color: white;
    padding: 10px 15px; border-radius: 6px; width: 300px; outline: none;
}

/* Metrics Section */
.metrics-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.card { background-color: var(--bg-panel); padding: 20px; border-radius: 12px; }
.metric-card h3 { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 10px; }
.big-number { font-size: 2rem; font-weight: bold; }
.wide { grid-column: span 2; }

/* Simple CSS Bar Chart */
.chart-container { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.chart-row { display: flex; align-items: center; font-size: 0.8rem; }
.chart-label { width: 100px; color: var(--text-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-bar-bg { flex-grow: 1; background: #3e3e4a; height: 8px; border-radius: 4px; margin: 0 10px; overflow: hidden; }
.chart-bar-fill { height: 100%; background-color: var(--accent-green); border-radius: 4px; }
.chart-value { width: 30px; text-align: right; }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.article-card { background: var(--bg-panel); border-radius: 12px; overflow: hidden; transition: transform 0.2s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: 160px; object-fit: cover; background: #3e3e4a; }
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.source-tag { font-size: 0.75rem; color: var(--primary); font-weight: bold; margin-bottom: 8px; }
.article-title { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.article-desc { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 20px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { display: inline-block; text-decoration: none; color: white; background: #3e3e4a; padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; align-self: flex-start; }