/* ============================================
   CÂMARA MUNICIPAL - Portal da Transparência
   CSS Completo - Padrão ATRICON / Selo Diamante
   ============================================ */

:root {
    /* Cores Oficiais da Instituição */
    --primary: #236a58;
    --secondary: #2f8f79;
    --accent: #c9a227;

    /* Cores de Feedback */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;

    /* Cores Estruturais e Neutras */
    --light: #f3f4f6;
    --dark: #11362d;
    --gray: #4b5563;
    --border: #e5e7eb;
    --white: #ffffff;
    --text: #1f2937; /* Regra 1: Cinza escuro para leitura */
    --text-light: #6b7280;

    /* Sombras Sutis (Regra 2) */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(35, 106, 88, 0.1), 0 4px 6px -2px rgba(35, 106, 88, 0.05);

    /* Cores de Categoria */
    --legislative: #2563eb;
    --financial: #059669;
    --admin: #7c3aed;
}

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

body {
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* ========== SKIP LINK ========== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    border-radius: 0 0 8px 0;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* ========== LEGISLATIVE BAR ========== */
.legislative-bar {
    background: var(--dark);
    color: var(--accent);
    padding: 6px 5%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* ========== ACCESSIBILITY SIDEBAR ========== */
.acc-sidebar-diamond {
    position: fixed;
    right: 25px;
    bottom: 100px;
    z-index: 9999;
}
.acc-btn-main {
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent);
    transition: all 0.3s;
}
.acc-btn-main:hover {
    transform: scale(1.1);
    background: var(--secondary);
}
.acc-actions {
    position: absolute;
    bottom: 65px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.acc-action-btn {
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    font-size: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.acc-action-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--primary);
    padding: 8px 5%;
    font-size: 12px;
}
.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 12px;
}
.top-links a:hover {
    color: var(--white);
}
.top-links a i {
    margin-right: 5px;
    color: var(--accent);
}
.acc-controls {
    display: flex;
    gap: 5px;
}
.acc-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.acc-controls button:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

/* ========== HEADER ========== */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
.brand img {
    height: 70px;
    width: auto;
}
.brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    letter-spacing: 1px;
}
.brand-text span {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}
.brand-text small {
    display: block;
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ========== NAVIGATION ========== */
#main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}
#main-nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
#main-nav ul li a:hover,
#main-nav ul li a.active {
    background: var(--primary);
    color: var(--white);
}
#main-nav ul li a i {
    color: var(--accent);
}
#main-nav ul li a:hover i,
#main-nav ul li a.active i {
    color: var(--white);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}
.mobile-nav-overlay.active {
    display: block;
}

/* ========== ENV BANNER (Regra 4: Fundo sólido limpo) ========== */
.env-banner {
    background: var(--white);
    padding: 20px 5%;
    border-bottom: 1px solid var(--border);
}
.env-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.env-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.env-badge i {
    font-size: 28px;
    color: var(--primary);
}
.env-badge div strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}
.env-badge div span {
    font-size: 12px;
    color: var(--gray);
}
.env-update i {
    animation: spin 2s linear infinite;
    color: var(--accent);
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========== BREADCRUMB ========== */
.breadcrumb-box {
    background: var(--white);
    padding: 12px 5%;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    max-width: 1400px;
    margin: 0 auto;
}
.breadcrumb-box a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb-box a:hover {
    color: var(--primary);
}
.breadcrumb-box i {
    color: var(--accent);
    margin: 0 8px;
}

/* ========== SEARCH SIMPLIFICADA ========== */
.search-simple-section {
    padding: 40px 5%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.search-simple-header {
    max-width: 1400px;
    margin: 0 auto 25px;
}
.search-simple-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-simple-header h2 i {
    color: var(--accent);
}
.search-simple-header p {
    color: var(--gray);
    font-size: 14px;
    margin-left: 34px;
}

.filter-card {
    max-width: 1400px;
    margin: 0 auto;
}
.filter-grid-simple {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.filter-group label {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filter-group label i {
    color: var(--accent);
    margin-right: 4px;
}
.filter-control {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--white);
    transition: all 0.3s;
    width: 100%;
    color: var(--text);
}
.filter-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(47, 143, 121, 0.15);
}
.btn-filter-main {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    height: fit-content;
    white-space: nowrap;
}
.btn-filter-main:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.search-hint {
    font-size: 11px;
    color: var(--gray);
    margin-top: 12px;
    display: block;
}
.search-hint i {
    color: var(--accent);
}

/* ========== QUICK ACCESS TO DEEP DIVE ========== */
.deep-dive-bar {
    max-width: 1400px;
    margin: 20px auto 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.deep-dive-bar span {
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
}
.deep-dive-bar span i {
    color: var(--accent);
    margin-right: 5px;
}
.btn-deep-dive {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}
.btn-deep-dive:hover {
    background: var(--light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.btn-deep-dive i {
    color: var(--accent);
}

/* ========== DASHBOARD CARDS (Regra 2: Sem sombra fixa pesada) ========== */
.dashboard-cards-section {
    padding: 40px 5%;
    background: var(--light);
}
.dashboard-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.dash-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    border: 1px solid var(--border);
    border-left: 4px solid;
    text-decoration: none;
    color: inherit;
}
.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.dash-card-legislative {
    border-left-color: var(--legislative);
}
.dash-card-financial {
    border-left-color: var(--financial);
}
.dash-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.dash-card-legislative .dash-card-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--legislative);
}
.dash-card-financial .dash-card-icon {
    background: rgba(5, 150, 105, 0.1);
    color: var(--financial);
}
.dash-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dash-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Regra 1: Valores escuros, não verdes/coloridos */
.dash-card-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.dash-card-meta {
    font-size: 11px;
    color: var(--gray);
    font-weight: 600;
}
.dash-card-meta span {
    color: var(--text);
    font-weight: 700;
}

/* ========== ANALYTICS / CHARTS ========== */
.analytics-section {
    padding: 40px 5%;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.analytics-header {
    max-width: 1400px;
    margin: 0 auto 30px;
}
.analytics-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.analytics-header h2 i {
    color: var(--accent);
}
.analytics-header p {
    color: var(--gray);
    font-size: 14px;
    margin-left: 34px;
}
.analytics-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
}
.analytics-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: none;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}
.analytics-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}
.analytics-card-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
}
.analytics-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.analytics-card-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.analytics-card-header h4 i {
    color: var(--primary);
}
.analytics-period {
    font-size: 11px;
    color: var(--gray);
    font-weight: 600;
    background: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
}
.chart-container {
    height: 250px;
    position: relative;
}
.chart-container-pie {
    height: 280px;
}
.analytics-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.legend-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}
.legend-item i {
    font-size: 8px;
}
.legend-receita i {
    color: #059669;
}
.legend-despesa i {
    color: #dc2626;
}
.legend-saldo i {
    color: var(--accent);
}

.analytics-insight {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(5, 150, 105, 0.05);
    border-left: 3px solid var(--success);
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
}
.analytics-insight i {
    color: var(--success);
    margin-right: 5px;
}
.analytics-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}
.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== INDICATORS ========== */
.indicators-section {
    padding: 40px 5%;
    background: var(--light);
}
.indicators-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}
.indicators-box {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: none;
    border: 1px solid var(--border);
}
.indicators-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.indicators-box h3 i {
    color: var(--accent);
}
.indicator-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.indicator-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.indicator-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.indicator-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.indicator-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text); /* Regra 1 */
}
.indicator-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.indicator-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}
.indicator-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--gray);
}
.indicator-tooltip {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}
.indicator-tooltip:hover {
    text-decoration: underline;
}
.indicator-alert .indicator-value {
    color: var(--warning);
}

/* ========== NEXT SESSION (Regra 4: Fundo sólido em vez de gradiente) ========== */
.next-session-box {
    background: var(--primary);
    border-radius: 12px;
    padding: 30px;
    color: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.next-session-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.next-session-header i {
    font-size: 24px;
    color: var(--accent);
}
.next-session-header h4 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}
.session-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.status-scheduled {
    background: var(--accent);
    color: var(--primary);
}
.status-live {
    background: var(--danger);
    color: var(--white);
    animation: pulse 2s infinite;
}
.status-finished {
    background: var(--success);
    color: var(--white);
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
.next-session-date {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}
.next-session-details {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 13px;
    opacity: 0.9;
}
.next-session-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.next-session-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-session-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s;
}
.btn-session-primary:hover {
    transform: translateY(-2px);
    background: var(--light);
}
.btn-session-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}
.btn-session-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ========== SECTION HEADINGS ========== */
.section-heading {
    padding: 40px 5% 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.section-heading h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-heading h2 i {
    color: var(--accent);
}
.section-heading p {
    color: var(--gray);
    font-size: 14px;
    margin-left: 34px;
}

/* ========== VEREADORES ========== */
.vereadores-section {
    padding: 0 5% 40px;
    background: var(--light);
}
.vereadores-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.vereador-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    border: 1px solid var(--border);
}
.vereador-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}
.vereador-photo {
    height: 160px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vereador-photo i {
    font-size: 60px;
    color: var(--border);
}
.vereador-info {
    padding: 20px;
    text-align: center;
}
.vereador-info h4 {
    margin: 0 0 5px 0;
    color: var(--text); /* Regra 1 */
    font-size: 15px;
    font-weight: 700;
}
.vereador-party {
    margin: 0 0 15px 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}
.vereador-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
}
.vereador-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.vereador-stats i {
    color: var(--accent);
}
.vereador-link {
    display: block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}
.vereador-link i {
    color: var(--accent);
}
.vereadores-all-link {
    text-align: center;
    margin-top: 30px;
}
.vereadores-all-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}
.vereadores-all-link a:hover {
    color: var(--secondary);
    gap: 15px;
}

/* ========== SESSOES ========== */
.sessoes-section {
    padding: 0 5% 40px;
    background: var(--light);
}
.sessoes-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.sessao-live-box,
.sessao-recordings-box,
.sessao-atas-box {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: none;
    border: 1px solid var(--border);
}
.sessao-live-box h4,
.sessao-recordings-box h4,
.sessao-atas-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sessao-live-box h4 i,
.sessao-recordings-box h4 i,
.sessao-atas-box h4 i {
    color: var(--primary);
}
.live-player {
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}
.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}
.live-badge i {
    animation: pulse 2s infinite;
}
.live-placeholder {
    padding: 40px 20px;
    text-align: center;
}
.live-placeholder i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 10px;
}
.live-placeholder p {
    margin: 0 0 5px 0;
    color: var(--gray);
    font-size: 13px;
}
.live-placeholder p strong {
    color: var(--text);
}
.live-status {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 10px;
    border: 1px solid var(--border);
}
.btn-live {
    display: block;
    background: var(--primary);
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s;
}
.btn-live:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Recordings */
.recordings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.recordings-header h4 {
    margin: 0;
}
.recordings-filter {
    display: flex;
    gap: 5px;
}
.filter-control-sm {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    width: 130px;
}
.btn-filter-sm {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.recordings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.recording-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}
.recording-item:hover {
    background: var(--light);
    border-color: var(--secondary);
}
.recording-thumb {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}
.recording-info {
    flex: 1;
}
.recording-title {
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}
.recording-date {
    font-size: 11px;
    color: var(--gray);
    margin-top: 2px;
}
.recording-date i {
    color: var(--accent);
    margin-right: 3px;
}
.recording-link {
    color: var(--primary);
    font-size: 12px;
}
.recordings-all,
.atas-all {
    display: block;
    margin-top: 15px;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
}
.recordings-all:hover,
.atas-all:hover {
    color: var(--secondary);
}

/* Atas */
.atas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ata-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}
.ata-item:hover {
    background: var(--light);
    border-color: var(--secondary);
}
.ata-title {
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}
.ata-date {
    font-size: 11px;
    color: var(--gray);
    margin-top: 2px;
}

/* ========== TRANSPARENCIA ATIVA ========== */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 0 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.nav-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: none;
    transition: all 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.nav-card i {
    font-size: 28px;
    transition: color 0.3s;
}
.nav-card span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-card-legislative {
    border-top: 3px solid var(--legislative);
}
.nav-card-legislative i {
    color: var(--legislative);
}
.nav-card-financial {
    border-top: 3px solid var(--financial);
}
.nav-card-financial i {
    color: var(--financial);
}
.nav-card-admin {
    border-top: 3px solid var(--admin);
}
.nav-card-admin i {
    color: var(--admin);
}

/* ========== HOW TO USE (Regra 4: Fundo sólido em vez de gradient) ========== */
.how-to-use-section {
    padding: 40px 5%;
    background: var(--dark);
    margin: 0 5% 40px;
    border-radius: 12px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}
.how-to-use-section h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.how-to-use-section h3 i {
    color: var(--accent);
}
.how-to-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.how-to-step {
    text-align: center;
    color: var(--white);
    position: relative;
}
.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin: 0 auto 15px;
}
.how-to-step i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}
.how-to-step h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.how-to-step p {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.5;
}

/* ========== GRID 3 COLS ========== */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 5% 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== LAI STATS ========== */
.lai-stats-box {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 5%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.lai-stat {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray);
    border: 1px solid var(--border);
}
.lai-stat strong {
    color: var(--text); /* Regra 1 */
    font-size: 18px;
}
.lai-stat a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* ========== UPDATES ========== */
.updates-container {
    padding: 0 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.update-list-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: none;
    border: 1px solid var(--border);
}
.update-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}
.update-item:last-child {
    border-bottom: none;
}
.update-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-despesa {
    background: rgba(5, 150, 105, 0.1);
    color: var(--financial);
}
.badge-lei {
    background: rgba(37, 99, 235, 0.1);
    color: var(--legislative);
}
.badge-projeto {
    background: rgba(124, 58, 237, 0.1);
    color: var(--admin);
}
.badge-sessao {
    background: rgba(201, 162, 39, 0.1);
    color: var(--accent);
}
.update-link {
    margin-left: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}
.update-link:hover {
    text-decoration: underline;
}

/* ========== e-SIC ========== */
.esic-section {
    padding: 40px 5%;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.container-esic {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}
.esic-text h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}
.esic-text p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 15px;
}
.esic-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.esic-sublink {
    background: var(--light);
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: none;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.esic-sublink:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.esic-sublink i {
    color: var(--accent);
}
.responsible-box {
    background: var(--light);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: none;
    border: 1px solid var(--border);
}
.resp-icon-bg {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.resp-info h5 {
    color: var(--gray);
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.resp-info p {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}
.esic-card-container {
    display: flex;
    justify-content: center;
}
.esic-card-box {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: none;
    border: 1px solid var(--border);
    max-width: 320px;
    width: 100%;
}
.esic-card-box:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}
.esic-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 28px;
}
.btn-esic-link {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    margin-top: 10px;
}
.btn-esic-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== EXPORT SECTION ========== */
.export-section {
    padding: 20px 5%;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}
.export-bar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.export-bar span {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}
.export-bar span i {
    color: var(--accent);
}
.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-export {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-export:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-export.btn-api {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-export.btn-api:hover {
    background: var(--secondary);
}

/* ========== API SECTION (Regra 4) ========== */
.api-section {
    padding: 40px 5%;
    background: var(--dark);
    margin: 0 5% 40px;
    border-radius: 12px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}
.api-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}
.api-text h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.api-text h3 i {
    color: var(--accent);
}
.api-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 20px;
}
.api-endpoints {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.api-endpoint {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.api-method {
    background: var(--primary);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}
.api-endpoint code {
    color: var(--accent);
    font-size: 13px;
    font-family: "Courier New", monospace;
}
.api-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-api-doc,
.btn-api-test {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
    text-align: center;
}
.btn-api-doc {
    background: var(--primary);
    color: var(--white);
}
.btn-api-doc:hover {
    transform: translateY(-2px);
    background: var(--secondary);
}
.btn-api-test {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-api-test:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ========== FOOTER ========== */
.footer-tp {
    background: var(--dark);
    color: var(--white);
    padding: 60px 5% 30px;
}
.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent);
}
.footer-info p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 14px;
}
.footer-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--accent);
}
.wcag-badge {
    margin-top: 20px;
    font-size: 11px;
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 5px;
}
.opendata-footer-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.opendata-footer-card h4 {
    margin: 0 0 15px;
    font-size: 15px;
    color: var(--accent);
}
.opendata-footer-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}
.opendata-footer-card p a {
    color: var(--accent);
    text-decoration: none;
}
.opendata-buttons {
    display: flex;
    gap: 10px;
}
.btn-data {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-data:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.copyright {
    text-align: center;
    padding-top: 30px;
    font-size: 13px;
    opacity: 0.6;
}

/* ========== DARK MODE ========== */
body.dark-mode {
    background-color: #0f172a;
    color: #e5e7eb;
}
body.dark-mode header,
body.dark-mode .breadcrumb-box,
body.dark-mode .search-simple-section,
body.dark-mode .dashboard-cards-section,
body.dark-mode .indicators-section,
body.dark-mode .esic-section,
body.dark-mode .export-section {
    background: #1f2937;
}
body.dark-mode .nav-card,
body.dark-mode .dash-card,
body.dark-mode .update-list-card,
body.dark-mode .esic-card-box,
body.dark-mode .lai-stat,
body.dark-mode .filter-control,
body.dark-mode .sessao-live-box,
body.dark-mode .sessao-recordings-box,
body.dark-mode .sessao-atas-box,
body.dark-mode .vereador-card,
body.dark-mode .indicators-box,
body.dark-mode .next-session-box,
body.dark-mode .recording-item,
body.dark-mode .ata-item,
body.dark-mode .esic-sublink,
body.dark-mode .responsible-box,
body.dark-mode .analytics-card,
body.dark-mode .btn-deep-dive {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}
body.dark-mode .section-heading h2,
body.dark-mode .dash-card-value,
body.dark-mode .indicator-title,
body.dark-mode .indicator-value,
body.dark-mode .vereador-info h4,
body.dark-mode .recording-title,
body.dark-mode .ata-title,
body.dark-mode .esic-text h2,
body.dark-mode .resp-info h5,
body.dark-mode .analytics-card-header h4 {
    color: #f3f4f6;
}
body.dark-mode .dash-card-meta,
body.dark-mode .indicator-footer,
body.dark-mode .recording-date,
body.dark-mode .ata-date,
body.dark-mode .search-hint,
body.dark-mode .section-heading p {
    color: #9ca3af;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1200px) {
    .filter-grid-simple {
        grid-template-columns: repeat(2, 1fr);
    }
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    .sessoes-container {
        grid-template-columns: 1fr 1fr;
    }
    .how-to-steps {
        grid-template-columns: 1fr;
    }
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    .analytics-card-wide {
        grid-template-columns: 1fr;
    }
    .api-content {
        grid-template-columns: 1fr;
    }
    .deep-dive-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
    }
    #main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 999;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }
    #main-nav.active {
        display: block;
    }
    #main-nav ul {
        flex-direction: column;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .filter-grid-simple {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .container-esic {
        grid-template-columns: 1fr;
    }
    .grid-3-cols {
        grid-template-columns: 1fr;
    }
    .env-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .filter-grid-simple {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .sessoes-container {
        grid-template-columns: 1fr;
    }
    .main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .export-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    .top-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .brand-text h1 {
        font-size: 14px;
    }
    .brand img {
        height: 50px;
    }
    .analytics-card-wide {
        grid-template-columns: 1fr;
    }
    .api-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .esic-links-grid {
        grid-template-columns: 1fr;
    }
    .how-to-steps {
        grid-template-columns: 1fr;
    }
    .next-session-details {
        flex-direction: column;
        gap: 5px;
    }
}
