/* ============================================
   ESTILOS DA PÁGINA DA SECRETARIA LEGISLATIVA
   ============================================ */

/* --- Cabeçalho e Breadcrumb --- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 5% 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.breadcrumb-nav {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}
.breadcrumb li {
    display: flex;
    align-items: center;
}
.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 16px;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}
.breadcrumb a:hover {
    background: rgba(0, 51, 102, 0.1);
    text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 8px;
}

/* --- Container Principal --- */
.secretaria-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 5% 80px;
}

.secretaria-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}
.section-title i {
    color: var(--accent);
}

/* --- Principal: Departamentos --- */
.sec-intro {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.dept-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dept-card {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 24px;
    transition: var(--transition);
}

.dept-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.dept-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.dept-card:hover .dept-icon {
    background: var(--primary);
    color: white;
}

.dept-info h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.dept-info p {
    color: var(--text-main);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* --- Barra Lateral (Sidebar) --- */
.sec-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    padding: 24px;
}

.sidebar-widget h3 {
    font-size: 16px;
    color: var(--primary);
    margin: 0 0 20px 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-widget h3 i {
    color: var(--accent);
}

/* Widget Atendimento */
.atendimento-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.atendimento-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}
.atendimento-list li:last-child {
    border-bottom: none;
}
.atendimento-list .dia {
    color: var(--text-main);
}
.atendimento-list .hora {
    color: var(--success);
}

.atendimento-nota {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-body);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin: 0;
    display: flex;
    gap: 8px;
}

/* Widget Contatos */
.contato-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contato-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contato-list i {
    color: var(--primary);
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.contato-list div {
    display: flex;
    flex-direction: column;
}

.contato-list strong {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.contato-list span {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
}

/* Widget Links */
.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-body);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.quick-link:last-child {
    margin-bottom: 0;
}

.quick-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- Dark Mode Override --- */
body.dark-mode .dept-card,
body.dark-mode .sidebar-widget {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .section-title {
    border-color: #334155;
    color: var(--accent);
}
body.dark-mode .dept-icon {
    background: #0f172a;
    color: var(--accent);
}
body.dark-mode .dept-card:hover .dept-icon {
    background: var(--accent);
    color: #0f172a;
}
body.dark-mode .dept-info h3 {
    color: var(--accent);
}
body.dark-mode .dept-info p {
    color: #e2e8f0;
}

body.dark-mode .sidebar-widget h3 {
    color: var(--accent);
}
body.dark-mode .atendimento-list li {
    border-color: #334155;
}
body.dark-mode .atendimento-list .dia,
body.dark-mode .contato-list span {
    color: #e2e8f0;
}
body.dark-mode .atendimento-nota {
    background: #0f172a;
    color: #94a3b8;
}

body.dark-mode .contato-list i {
    background: #0f172a;
    color: var(--accent);
}
body.dark-mode .quick-link {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
body.dark-mode .quick-link:hover {
    background: var(--accent);
    color: #0f172a;
}

/* --- Responsividade --- */
@media (max-width: 900px) {
    .secretaria-grid {
        grid-template-columns: 1fr;
    }
    .sec-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .dept-card {
        flex-direction: column;
    }
    .dept-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
    .sec-sidebar {
        grid-template-columns: 1fr;
    }
}
