/* ================================================
   CSS COMPLETO - DASHBOARD OTIMIZA
   ================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --sidebar-width: 260px;
    --header-height: 70px;
    --primary-color: #4f46e5;
    --primary-light: #eef2ff;
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --info-color: #06b6d4;
    --info-light: #cffafe;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-card: #ffffff;
    --bg-body: #f9fafb;
}

/* Tema Dark */
[data-theme="dark"] {
    --primary-color: #818cf8;
    --primary-light: #312e81;
    --success-color: #34d399;
    --success-light: #064e3b;
    --warning-color: #fbbf24;
    --warning-light: #78350f;
    --info-color: #22d3ee;
    --info-light: #164e63;
    --danger-color: #f87171;
    --text-dark: #f3f4f6;
    --text-gray: #9ca3af;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --bg-light: #1f2937;
    --bg-card: #111827;
    --bg-body: #0f172a;
}

/* Dark theme: form controls */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-dark);
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}
[data-theme="dark"] .form-control::placeholder { color: var(--text-gray); }

/* Dark theme: DataTables */
[data-theme="dark"] .dataTables_wrapper .dataTables_length select,
[data-theme="dark"] .dataTables_wrapper .dataTables_filter input {
    background-color: var(--bg-light); border-color: var(--border-color); color: var(--text-dark);
}
[data-theme="dark"] .dataTables_wrapper .dataTables_length label,
[data-theme="dark"] .dataTables_wrapper .dataTables_filter label,
[data-theme="dark"] .dataTables_wrapper .dataTables_info { color: var(--text-gray); }
[data-theme="dark"] .dataTables_wrapper .dataTables_empty { color: var(--text-gray); }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed; left: 0; top: 0;
    width: var(--sidebar-width); height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    z-index: 1000; display: flex; flex-direction: column;
    transition: background-color 0.3s ease;
}
.sidebar-header {
    height: var(--header-height); padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
}
.sidebar .logo-container { display: flex; align-items: center; justify-content: center; }
.sidebar-logo { max-width: 180px; width: 100%; height: auto; transition: opacity 0.3s ease; }
.sidebar-logo.logo-dark { display: none; }
[data-theme="dark"] .sidebar-logo.logo-light { display: none; }
[data-theme="dark"] .sidebar-logo.logo-dark { display: block; }
.sidebar-nav { padding: 20px 12px; flex: 1; overflow-y: auto; }
.sidebar-nav .nav-item { margin-bottom: 4px; }
.sidebar-nav .nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; color: var(--text-gray);
    text-decoration: none; border-radius: 8px;
    transition: all 0.2s ease; font-size: 14px;
}
.sidebar-nav .nav-link:hover { background-color: var(--bg-light); color: var(--text-dark); }
.sidebar-nav .nav-link.active { background-color: var(--primary-light); color: var(--primary-color); font-weight: 500; }
.sidebar-nav .nav-link i { font-size: 18px; }

/* Submenu */
.nav-link-collapse { display: flex; align-items: center; cursor: pointer; }
.nav-link-collapse .submenu-arrow { transition: transform 0.3s ease; font-size: 12px; }
.nav-link-collapse[aria-expanded="true"] .submenu-arrow { transform: rotate(180deg); }
.submenu { padding-left: 12px; margin-top: 4px; }
.submenu .nav-item { margin-bottom: 0; }
.submenu-link { padding: 8px 16px 8px 28px !important; font-size: 13px !important; position: relative; }
.submenu-link::before { content: '-'; position: absolute; left: 16px; color: var(--text-gray); }
.submenu-link:hover::before, .submenu-link.active::before { color: var(--primary-color); }

/* ===== MAIN CONTENT ===== */
.main-content { margin-left: var(--sidebar-width); min-height: 100vh; }

/* ===== HEADER ===== */
.main-header {
    position: sticky; top: 0; height: var(--header-height);
    background: var(--bg-card); border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px; z-index: 100; transition: background-color 0.3s ease;
}
.header-left { display: flex; align-items: center; gap: 20px; }
.search-box {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-light); padding: 10px 16px;
    border-radius: 8px; min-width: 300px;
}
.search-box i { color: var(--text-gray); }
.search-box input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; color: var(--text-dark); }
.search-box input::placeholder { color: var(--text-gray); }
.header-right { display: flex; align-items: center; gap: 16px; }

/* Notification */
.notification-btn { position: relative; font-size: 20px; color: var(--text-gray); }
.notification-btn .badge { position: absolute; top: -2px; right: -2px; font-size: 10px; background: var(--success-color); padding: 2px 6px; }

/* User Info */
.user-info-header { display: flex; flex-direction: column; align-items: flex-end; }
.user-info-header .user-name { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.user-info-header .user-ip { font-size: 11px; color: var(--text-gray); }
.user-info-header .user-session { font-size: 10px; color: var(--success-color); display: flex; align-items: center; }
.user-info-header .user-session i { font-size: 10px; }

/* Avatar */
.user-profile .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary-light); display: flex; align-items: center;
    justify-content: center; border: none; cursor: pointer; transition: all 0.2s ease;
}
.user-profile .avatar:hover { background: var(--primary-color); }
.user-profile .avatar:hover i { color: #ffffff; }
.user-profile .avatar i { font-size: 24px; color: var(--primary-color); }
.user-profile .avatar.dropdown-toggle::after { display: none; }

/* Dropdown — regras defensivas (não depender do reset do Bootstrap) */
.user-profile .dropdown-menu {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0; min-width: 180px; margin-top: 8px;
    list-style: none;
}
.user-profile .dropdown-menu > li { list-style: none; padding: 0; margin: 0; }
.user-profile .dropdown-item {
    display: block; width: 100%; box-sizing: border-box;
    padding: 10px 16px; font-size: 14px;
    color: var(--text-dark); background: transparent;
    border: 0; outline: 0;
    text-align: left; text-decoration: none; white-space: nowrap;
    font-family: inherit; line-height: 1.4;
    cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.user-profile .dropdown-item:hover,
.user-profile .dropdown-item:focus { background: var(--bg-light); color: var(--text-dark); outline: 0; }
.user-profile .dropdown-item.text-danger { color: var(--danger-color) !important; }
.user-profile .dropdown-item.text-danger:hover,
.user-profile .dropdown-item.text-danger:focus { background: #fee2e2; }
[data-theme="dark"] .user-profile .dropdown-item.text-danger:hover,
[data-theme="dark"] .user-profile .dropdown-item.text-danger:focus { background: #7f1d1d; }
.user-profile .dropdown-item-text {
    display: block; padding: 6px 16px; font-size: 13px; color: var(--text-gray);
}
.user-profile .dropdown-divider {
    height: 0; margin: 4px 0; overflow: hidden;
    border: 0; border-top: 1px solid var(--border-color);
}

/* ===== DASHBOARD CONTENT ===== */
.dashboard-content { padding: 30px; }
.page-header { margin-bottom: 30px; }
.page-title { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.page-subtitle { color: var(--text-gray); font-size: 14px; }

/* Stats Cards */
.stats-row { margin-bottom: 30px; }
.stat-card {
    background: var(--bg-card); border-radius: 12px; padding: 24px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}
.stat-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.stat-icon i { font-size: 24px; }
.bg-primary-light { background-color: var(--primary-light); }
.bg-success-light { background-color: var(--success-light); }
.bg-warning-light { background-color: var(--warning-light); }
.bg-info-light { background-color: var(--info-light); }
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }
.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 13px; color: var(--text-gray); margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-dark); }

/* Table Card */
.table-card {
    background: var(--bg-card); border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}
.table-card .card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border-color); background: transparent;
}
.table-card .card-title { font-size: 16px; font-weight: 600; margin: 0; color: var(--text-dark); }
.table-card .card-body { padding: 0; }
.table {
    margin: 0;
    --bs-table-bg: var(--bg-card); --bs-table-color: var(--text-dark);
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: var(--bg-light); --bs-table-hover-bg: var(--bg-light);
}
.table th {
    background: var(--bg-light) !important; font-size: 12px; font-weight: 600;
    text-transform: uppercase; color: var(--text-gray) !important;
    padding: 14px 24px; border: none !important;
}
.table td {
    padding: 16px 24px; border-bottom: 1px solid var(--border-color) !important;
    vertical-align: middle; font-size: 14px;
    color: var(--text-dark) !important; background: var(--bg-card) !important;
}
.table tbody tr:last-child td { border-bottom: none !important; }
.table tbody tr:hover td { background-color: var(--bg-light) !important; }

/* Badges */
.badge { font-weight: 500; padding: 6px 12px; border-radius: 6px; }
.badge.bg-success { background-color: var(--success-light) !important; color: var(--success-color); }
.badge.bg-warning { background-color: var(--warning-light) !important; color: var(--warning-color); }
.badge.bg-danger { background-color: #fee2e2 !important; color: var(--danger-color); }
[data-theme="dark"] .badge.bg-danger { background-color: #7f1d1d !important; }

/* Buttons */
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background-color: #4338ca; border-color: #4338ca; }
.btn-outline-primary { color: var(--primary-color); border-color: var(--border-color); }
.btn-outline-primary:hover { background-color: var(--primary-light); color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-secondary { color: var(--text-gray); border-color: var(--border-color); }
.btn-outline-secondary:hover { background-color: var(--bg-light); color: var(--text-dark); border-color: var(--border-color); }

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-light); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 8px 12px; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--text-gray); transition: all 0.3s ease;
}
.theme-toggle:hover { background: var(--primary-light); color: var(--primary-color); border-color: var(--primary-color); }
.theme-toggle i { font-size: 18px; }
.theme-toggle .theme-text { font-weight: 500; }
@media (max-width: 768px) { .theme-toggle .theme-text { display: none; } }

/* Account Switcher */
.account-switcher { margin-right: 8px; }
.account-btn {
    background: var(--bg-light); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 8px 14px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-dark); font-size: 13px; font-weight: 500;
    transition: all 0.2s ease; text-decoration: none;
}
.account-btn:hover { background: var(--primary-light); border-color: var(--primary-color); color: var(--primary-color); }
.account-btn i { font-size: 16px; color: var(--primary-color); }
.account-btn .account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-btn.dropdown-toggle::after { margin-left: 4px; font-size: 10px; }
.account-menu {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 8px 0; min-width: 220px; margin-top: 8px;
}
.account-menu .dropdown-item {
    color: var(--text-dark); padding: 10px 16px; font-size: 14px;
    transition: all 0.2s ease; display: flex; align-items: center;
    border: none; background: transparent; width: 100%; text-align: left; cursor: pointer;
}
.account-menu .dropdown-item:hover { background: var(--bg-light); }
.account-menu .dropdown-item.active { background: var(--primary-light); color: var(--primary-color); font-weight: 500; }
.account-menu .dropdown-item .check-placeholder { width: 20px; display: inline-block; }
.account-menu .dropdown-item i.bi-check-lg { color: var(--success-color); font-size: 16px; }
.account-menu .dropdown-divider { border-color: var(--border-color); margin: 8px 0; }
.account-menu .create-account-item { color: var(--primary-color); }
.account-menu .create-account-item:hover { background: var(--primary-light); }

/* Modals */
.modal-content { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; }
.modal-header { border-bottom: 1px solid var(--border-color); padding: 20px 24px; }
.modal-title { color: var(--text-dark); font-size: 18px; font-weight: 600; display: flex; align-items: center; }
.modal-title i { color: var(--primary-color); }
[data-theme="dark"] .modal-header .btn-close { filter: invert(1); }
.modal-body { padding: 24px; }
.modal-body .form-label { color: var(--text-dark); font-weight: 500; margin-bottom: 8px; }
.modal-body .form-control { background: var(--bg-light); border: 1px solid var(--border-color); color: var(--text-dark); padding: 12px 16px; border-radius: 8px; }
.modal-body .form-control:focus { background: var(--bg-card); border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.modal-body .form-control::placeholder { color: var(--text-gray); }
.modal-footer { border-top: 1px solid var(--border-color); padding: 16px 24px; }
.modal-footer .btn-secondary { background: var(--bg-light); border-color: var(--border-color); color: var(--text-dark); }
.modal-footer .btn-secondary:hover { background: var(--border-color); }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .search-box { min-width: auto; }
    .stats-row .col-md-6 { margin-bottom: 16px; }
    .account-btn .account-name { display: none; }
    .account-btn { padding: 8px 10px; }
}

/* ===== Overrides Atesta: compat com layout legacy ===== */
.app-layout { display: block; }
.app-layout .main-content.app-content { margin-left: var(--sidebar-width); min-height: 100vh; padding: 0; }
@media (max-width: 768px) { .app-layout .main-content.app-content { margin-left: 0; } }

.sidebar-logo { max-width: 180px; width: 100%; height: auto; }
.sidebar-logo.logo-dark { display: none; }
[data-theme="dark"] .sidebar-logo.logo-light { display: none; }
[data-theme="dark"] .sidebar-logo.logo-dark { display: block; }

/* Header ajustes para conteúdo Atesta */
.main-header .usage-counter { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-gray); }
.main-header .usage-bar { width: 80px; height: 6px; background: var(--bg-light); border-radius: 3px; overflow: hidden; }
.main-header .usage-bar-fill { height: 100%; background: var(--primary-color); transition: width .3s ease; }

/* Avatar com inicial */
.user-profile .avatar span { font-size: 16px; }

/* Conteúdo do app ganha padding padrão do template */
.app-layout .main-content > main,
.app-layout .main-content > .dashboard-content,
.app-layout .main-content > footer { padding: 24px 30px; }
.app-layout .main-content > main { padding-top: 20px; }

/* Cards antigos herdam visual */
.app-layout .card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Submenu ativo via sidebar-link.active mantém visual novo */
.sidebar-nav .nav-link.sidebar-link.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 500;
}
.sidebar-nav .submenu-link.sidebar-link.active { background-color: transparent; color: var(--primary-color); }
.sidebar-nav .submenu-link.sidebar-link.active::before { color: var(--primary-color); }

/* hidden utility do Atesta vs Bootstrap */
.hidden { display: none !important; }

/* Dark mode: extend Atesta .dark class to match data-theme */
html.dark { color-scheme: dark; }


/* ===== Logs (admin) ===== */
.logs-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.logs-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 10px;
  background: var(--card-bg, #fff);
}
.logs-card-label { font-size: 0.75rem; color: var(--gray-500, #6b7280); text-transform: uppercase; letter-spacing: 0.04em; }
.logs-card-value { font-size: 1.35rem; font-weight: 700; margin-top: 0.25rem; color: var(--gray-900, #111827); }
.logs-card-hint { font-size: 0.78rem; color: var(--gray-500, #6b7280); margin-top: 0.15rem; }

.logs-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}
.logs-tab {
  background: transparent;
  border: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600, #4b5563);
  border-radius: 6px;
  cursor: pointer;
}
.logs-tab:hover { background: var(--gray-50, #f9fafb); }
.logs-tab.active { background: var(--primary-50, #eff6ff); color: var(--primary-700, #1d4ed8); }

.logs-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  align-items: center;
}
.logs-filters input,
.logs-filters select {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 6px;
  font-size: 0.85rem;
  min-width: 140px;
}

.logs-status { font-size: 0.78rem; color: var(--gray-500, #6b7280); margin-bottom: 0.5rem; min-height: 1.1rem; }
.logs-empty { text-align: center; color: var(--gray-500, #6b7280); padding: 1.25rem; }
.logs-nowrap { white-space: nowrap; }
.logs-num { text-align: right; font-variant-numeric: tabular-nums; }
.logs-inline {
  background: var(--gray-50, #f9fafb);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.78rem;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.logs-table-wrap { overflow-x: auto; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 8px; }
.logs-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.logs-table th,
.logs-table td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid var(--gray-100, #f3f4f6); vertical-align: top; }
.logs-table th { background: var(--gray-50, #f9fafb); font-weight: 600; color: var(--gray-600, #4b5563); position: sticky; top: 0; }
.logs-table tbody tr:hover { background: var(--gray-50, #f9fafb); }
.logs-table tbody tr:last-child td { border-bottom: 0; }

.logs-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: lowercase;
}
.logs-badge-ok { background: #d1fae5; color: #065f46; }
.logs-badge-warn { background: #fef3c7; color: #92400e; }
.logs-badge-err { background: #fee2e2; color: #991b1b; }

.logs-agg,
.logs-daemons { margin-bottom: 0.75rem; }
.logs-agg-title { font-size: 0.78rem; color: var(--gray-500, #6b7280); margin-bottom: 0.35rem; }
.logs-agg-rows { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.logs-agg-pill {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200, #e5e7eb);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--gray-700, #374151);
}

@media (max-width: 640px) {
  .logs-table { font-size: 0.78rem; }
  .logs-filters input,
  .logs-filters select { min-width: 0; flex: 1 1 140px; }
}

/* ===== Jurisprudência ===== */
.juris-card { padding: 1rem 1.15rem; border-left: 3px solid var(--primary, #2563eb); }
.juris-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--gray-600, #4b5563); }
.juris-tribunal { font-weight: 700; color: var(--gray-900, #111827); letter-spacing: 0.02em; }
.juris-orgao, .juris-classe { color: var(--gray-600, #4b5563); }
.juris-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.4rem; font-size: 0.85rem; color: var(--gray-700, #374151); }
.juris-numero { margin: 0.4rem 0 0.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; letter-spacing: 0.01em; }
.juris-numero a { color: var(--primary, #2563eb); text-decoration: none; border-bottom: 1px dashed rgba(37, 99, 235, 0.4); padding-bottom: 1px; }
.juris-numero a:hover { border-bottom-style: solid; }
.juris-numero-ext { font-size: 0.75rem; opacity: 0.6; margin-left: 0.15rem; }
.juris-resumo { font-size: 0.92rem; color: var(--gray-800, #1f2937); line-height: 1.55; background: var(--gray-50, #f9fafb); border: 1px solid var(--gray-200, #e5e7eb); border-radius: 8px; padding: 0.75rem 0.9rem; }
.juris-resumo-pendente { background: #fffbeb; border-color: #fde68a; color: var(--gray-700, #374151); font-size: 0.85rem; }
.juris-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.juris-pill { font-size: 0.72rem; padding: 0.12rem 0.5rem; border-radius: 999px; background: var(--gray-100, #f3f4f6); color: var(--gray-700, #374151); font-weight: 500; }
.juris-pill-fraud { background: #fee2e2; color: #b91c1c; }
.juris-pill-lei { background: #ede9fe; color: #6d28d9; }

/* ===== Notícias ===== */
.noticias-list { display: flex; flex-direction: column; gap: 0.6rem; }
.noticia-card { padding: 0.7rem 0.9rem; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 8px; background: transparent; }
.noticia-card.is-new { border-color: var(--success, #059669); background: var(--success-bg, #ecfdf5); }
.noticia-meta { display: flex; gap: 0.5rem; align-items: center; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.noticia-meta .noticia-cat { font-weight: 700; }
.noticia-meta .noticia-cat-jurisprudencia { color: var(--primary, #2563eb); }
.noticia-meta .noticia-cat-legislacao { color: var(--purple, #7c3aed); }
.noticia-meta .noticia-cat-fraude { color: var(--danger, #dc2626); }
.noticia-meta .noticia-cat-imprensa { color: var(--gray-600, #4b5563); }
.noticia-meta .noticia-cat-outro { color: var(--gray-500, #6b7280); }
.noticia-meta .noticia-sep { color: var(--gray-500, #6b7280); }
.noticia-meta .noticia-fonte { color: var(--gray-500, #6b7280); }
.noticia-meta .noticia-data { color: var(--gray-500, #6b7280); margin-left: auto; }
.noticia-badge-nova { background: var(--success, #059669); color: #fff; padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; }
.noticia-titulo { font-weight: 600; color: var(--gray-900, #111827); text-decoration: none; display: block; margin-bottom: 0.25rem; }
.noticia-titulo:hover { text-decoration: underline; }
.noticia-resumo { margin: 0; font-size: 0.88rem; color: var(--gray-700, #374151); line-height: 1.5; }
.noticias-load-more { margin-top: 1rem; display: flex; justify-content: center; }
.noticias-load-more button { padding: 0.5rem 1.25rem; border: 1px solid var(--gray-200, #e5e7eb); background: var(--bg-card, #fff); color: var(--gray-700, #374151); border-radius: 8px; font-weight: 500; cursor: pointer; font-size: 0.88rem; }
.noticias-load-more button:hover { background: var(--gray-50, #f9fafb); }
.noticias-load-more button:disabled { opacity: 0.5; cursor: not-allowed; }
.noticias-total { font-size: 0.78rem; color: var(--gray-500, #6b7280); text-align: center; margin-top: 0.5rem; }
.noticia-chip { padding: 0.3rem 0.7rem; border: none; border-radius: 999px; font-size: 0.78rem; font-weight: 600; cursor: pointer; background: var(--gray-100, #f3f4f6); color: var(--gray-700, #374151); }
.noticia-chip.is-active { background: var(--primary, #2563eb); color: #fff; }
.noticia-chip-n { opacity: 0.7; margin-left: 0.2rem; }

/* ===== Chip global de Admin Edu ===== */
.edu-admin-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: #fef3c7; color: #92400e; border: 1px solid #fde68a; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.edu-admin-chip i { font-size: 0.85rem; }
.edu-admin-chip-sair { color: #92400e; text-decoration: underline; margin-left: 0.15rem; font-weight: 500; }
.edu-admin-chip-sair:hover { color: #78350f; }
