:root {
    --bg-body: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
}

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.brand i { color: var(--accent); }

.pro-tag {
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-name { display: flex; align-items: center; gap: 6px; }

.btn-logout {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-logout:hover { color: #ef4444; }

.dashboard-grid {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-header h2 { font-size: 1rem; font-weight: 600; }

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.chip input { display: none; }

.chip-label {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.825rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: var(--surface);
    transition: all 0.2s;
    user-select: none;
}

.chip input:checked + .chip-label {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-primary {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius, 8px);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--accent-hover); }

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.feed-header h2 { font-size: 1.25rem; font-weight: 700; }
.subtitle { font-size: 0.85rem; color: var(--text-muted); }
.feed-count { font-size: 0.85rem; color: var(--text-secondary); }

/* Barra de Filtro de Período */
.filter-bar-card {
    margin-bottom: 20px;
    padding: 14px 20px;
}

.filter-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-label-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-label-group svg, .filter-label-group i {
    width: 16px;
    height: 16px;
}

.filter-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-filter {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-filter.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    font-weight: 600;
}

.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    padding: 20px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-meta { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }

.badge {
    font-size: 0.725rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-category { background: var(--accent-light); color: var(--accent); }
.badge-score { background: #fef3c7; color: #b45309; }

.news-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-title a:hover { color: var(--accent); }
.external-icon { width: 14px; height: 14px; color: var(--text-muted); }

.news-footer {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-source, .news-date { display: flex; align-items: center; gap: 4px; }
.news-source svg, .news-date svg, .news-source i, .news-date i { width: 13px; height: 13px; }

.alert {
    padding: 10px;
    border-radius: var(--radius, 8px);
    font-size: 0.8rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-success { background: var(--success-light); color: var(--success); }

.empty-state { text-align: center; padding: 48px; color: var(--text-muted); }
.empty-state svg, .empty-state i { width: 40px; height: 40px; margin-bottom: 12px; }

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .filter-form { flex-direction: column; align-items: flex-start; }
}