/* ==========================================================================
   PORTAL INSTITUCIONAL PROJETO BPM SESAP/RN - FOLHA DE ESTILOS PRINCIPAL
   Gestão por Processos e Modernização da Saúde Pública
   ========================================================================== */

:root {
    /* Cores Institucionais */
    --primary-navy: #0a1632;
    --primary-blue: #0d47a1;
    --accent-blue: #1d4ed8;
    --sky-blue: #2563eb;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --gold: #d97706;
    --gold-light: #fef3c7;
    
    /* Neutros & Backgrounds */
    --bg-main: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    
    /* Textos */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #ffffff;
    
    /* Status das Frentes e Processos */
    --status-validado: #16a34a;
    --status-implantado: #0284c7;
    --status-em-andamento: #ea580c;
    --status-em-mapeamento: #d97706;
    --status-em-documentacao: #7c3aed;
    --status-aguardando: #e11d48;
    --status-em-revisao: #0891b2;
    
    /* Tipografia */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Montserrat', var(--font-main);
    
    /* Sombras & Transições */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --transition: all 0.25s ease-in-out;
}

/* Reset Global */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilitários */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--accent-blue); }
.hidden { display: none !important; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Botões Padronizados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #0b3c8a;
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--teal);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--teal-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-navy);
    border-color: var(--border-dark);
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: var(--text-light);
    border-color: var(--primary-navy);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ==========================================================================
   HEADER & NAVBAR FIXA
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 22, 50, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background-color: rgba(10, 22, 50, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: #93c5fd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
}

.nav-link {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.38rem 0.55rem;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.12);
}

.highlight-link {
    background: linear-gradient(135deg, var(--primary-blue), var(--teal));
    color: var(--text-light) !important;
    font-weight: 700;
}

.highlight-link:hover {
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION (INÍCIO) COM LOGO ANIMADO ORIGINAL
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 6.5rem;
    padding-bottom: 4rem;
    background: #0a1632 url('../images/hero-network.png') center/cover no-repeat;
    color: var(--text-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 50, 0.94) 0%, rgba(13, 71, 161, 0.86) 60%, rgba(15, 118, 110, 0.80) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

/* Layout de 2 colunas: Texto à esquerda, Imagem animada à direita */
.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: #bae6fd;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: center;
}

.hero-desc-box {
    background: rgba(10, 22, 50, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-lg);
}

.hero-desc-box p {
    font-size: 1rem;
    line-height: 1.75;
    text-align: justify;
    color: #f1f5f9;
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
    max-width: 580px;
    margin: 0.75rem auto 0 auto;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
    transition: var(--transition);
}

/* Imagem Original do Projeto com Animação Float */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 380px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    animation: float 6s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-18px);
    }
}

/* Suporte à redução de movimento para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .hero-logo {
        animation: none;
    }
}

/* Painel de Indicadores Gerais (KPIs) */
.kpi-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 0 auto 2.5rem auto;
    max-width: 1100px;
    justify-content: center;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--transition);
}

.kpi-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.kpi-icon {
    font-size: 1.6rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.kpi-label {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 500;
    line-height: 1.2;
}

/* Preview das Cinco Frentes */
.fronts-preview {
    margin-top: 1.5rem;
}

.fronts-preview-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
}

.fronts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    max-width: 1150px;
    margin: 0 auto;
    justify-content: center;
}

.front-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    color: var(--text-light);
}

.front-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #38bdf8;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.front-card-icon {
    font-size: 1.5rem;
    color: #38bdf8;
    margin-bottom: 0.75rem;
}

.front-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.front-card p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.front-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
.section {
    padding: 4.5rem 0;
}

.section-light {
    background-color: var(--bg-main);
}

.section-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3rem auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    background-color: #dbeafe;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--teal));
    margin: 0.75rem auto 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   SECTION 02: SOBRE O PROJETO
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.about-icon {
    width: 52px;
    height: 52px;
    background: #eff6ff;
    color: var(--primary-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    text-align: justify;
}

/* Linha do Tempo / Fases */
.timeline-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-sm);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.timeline-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.75rem;
    position: relative;
    background: #fafafa;
    transition: var(--transition);
}

.timeline-card.active-phase {
    background: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.timeline-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-concluido .timeline-badge { background: #dcfce7; color: #15803d; }
.status-andamento .timeline-badge { background: #ffedd5; color: #c2410c; }
.status-planejado .timeline-badge { background: #f1f5f9; color: #64748b; }

.timeline-year {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.timeline-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.timeline-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.timeline-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.timeline-features li i {
    color: var(--accent-blue);
    margin-top: 3px;
}

/* Ciclo BPM */
.bpm-cycle-container {
    background: linear-gradient(135deg, #0a1632, #0d47a1);
    color: var(--text-light);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.bpm-cycle-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bpm-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.bpm-step {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.25rem;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #38bdf8;
    display: block;
    margin-bottom: 0.5rem;
}

.bpm-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bpm-step p {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ==========================================================================
   SECTION 03: REPOSITÓRIO DE PROCESSOS
   ========================================================================== */
.repo-intro-box {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-blue);
    padding: 1.25rem 1.75rem;
    border-radius: 0 8px 8px 0;
    text-align: justify;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.repo-intro-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.repo-front-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.front-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.front-tab-btn:hover {
    background: #eff6ff;
    color: var(--primary-blue);
    border-color: #93c5fd;
}

.front-tab-btn.active {
    background: var(--primary-blue);
    color: var(--text-light);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.filter-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    margin-bottom: 1.25rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.85rem 2.8rem 0.85rem 2.8rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #f8fafc;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    display: none;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.filter-select {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    background-color: #ffffff;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.toolbar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.view-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.view-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--primary-navy);
    color: var(--text-light);
    border-color: var(--primary-navy);
}

/* Cards Grid */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.process-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.card-badges-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.process-code-badge {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    background: #dbeafe;
    color: var(--primary-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.process-front-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.front-compras { background: #e0f2fe; color: #0369a1; }
.front-aquisicoes { background: #dcfce7; color: #15803d; }
.front-manutencao { background: #fef3c7; color: #b45309; }
.front-custos { background: #fae8ff; color: #86198f; }
.front-terceirizados { background: #ffedd5; color: #c2410c; }
.front-sistemas { background: #ede9fe; color: #6d28d9; }
.front-historicos { background: #f1f5f9; color: #475569; }

.status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pill-sm {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.status-validado { background: #dcfce7; color: #16a34a; }
.status-implantado { background: #e0f2fe; color: #0284c7; }
.status-em-implantacao { background: #ffedd5; color: #c2410c; }
.status-em-documentacao { background: #ede9fe; color: #7c3aed; }
.status-aguardando-validacao { background: #ffe4e6; color: #e11d48; }
.status-em-revisao { background: #cffafe; color: #0891b2; }

.process-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.process-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.meta-item {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.process-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.flow-availability-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.flow-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.flow-pill.available {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flow-pill.unavailable {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.process-card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.process-card-footer .btn {
    width: 100%;
}

/* Tabela do Repositório */
.repo-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.repo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.repo-table th {
    background: #f8fafc;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.repo-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.repo-table tr:hover {
    background: #f8fafc;
}

.table-front-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #e2e8f0;
}

.table-flows {
    display: flex;
    gap: 0.35rem;
}

.badge-mini {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* No Results Box */
.no-results-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-dark);
    border-radius: 12px;
}

.no-results-box i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results-box h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.no-results-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   SECTION 04: GESTÃO POR PROCESSOS (2 ABAS: MODELOS DE DOCUMENTOS E POPS)
   ========================================================================== */
.section-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.section-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.section-tab-btn:hover {
    color: var(--primary-blue);
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.section-tab-btn.active {
    background: var(--primary-blue);
    color: var(--text-light);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.section-tab-panel {
    display: none;
}

.section-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-intro-banner {
    background: #eff6ff;
    border-left: 4px solid var(--primary-blue);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tab-intro-banner i {
    font-size: 1.25rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* Aba 1: Grid de Modelos */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.model-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.model-icon {
    width: 44px;
    height: 44px;
    background: #dbeafe;
    color: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.model-type-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--text-secondary);
}

.model-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.model-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.model-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.model-actions .btn {
    flex: 1;
}

/* Aba 2: POPs e Manuais */
.docs-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.docs-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.docs-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.docs-search-box input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.6rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #f8fafc;
}

.docs-search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #ffffff;
}

.docs-filter-selects {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.pop-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.pop-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.pop-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.pop-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.pop-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pop-card-actions .btn {
    flex: 1;
}

/* ==========================================================================
   SECTION 05: INDICADORES DE DESEMPENHO
   ========================================================================== */
.dashboard-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.dashboard-header-bar {
    background: #0a1632;
    color: var(--text-light);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-badge {
    background: rgba(22, 163, 74, 0.25);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.live-dot {
    font-size: 0.5rem;
    animation: pulse 1.5s infinite;
}

.dash-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

/* Navegação e Alternância de Painéis no Header */
.dash-views-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-view-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.25s ease;
    font-family: inherit;
}

.dash-view-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.dash-view-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.dash-view-btn.active i {
    color: #ffffff;
}

.dash-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-controls .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.dash-controls .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
}

.streamlit-embed-container {
    position: relative;
    width: 100%;
    background-color: #ffffff;
}

.dash-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Cropper Inteligente (Suporte a Streamlit e Páginas Web Nativas) */
.streamlit-iframe-cropper {
    width: 100%;
    height: 780px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.streamlit-iframe-cropper iframe {
    width: 100%;
    height: 780px;
    border: none;
    margin-bottom: 0;
}

.is-streamlit .streamlit-iframe-cropper {
    height: 760px;
}

.is-streamlit .streamlit-iframe-cropper iframe {
    height: 810px;
    margin-bottom: -50px; /* Corta o watermark 'Built with Streamlit' */
}

.streamlit-footer-mask {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: #ffffff;
    z-index: 4;
}

.is-streamlit .streamlit-footer-mask {
    display: block;
}

/* ==========================================================================
   SECTION 06: RELATÓRIOS E RESULTADOS
   ========================================================================== */
.reports-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.report-filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.report-filter-btn.active, .report-filter-btn:hover {
    background: var(--primary-blue);
    color: var(--text-light);
    border-color: var(--primary-blue);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.report-card.featured-report {
    border-top: 4px solid var(--accent-blue);
}

.report-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.report-cat-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: #dbeafe;
    color: var(--primary-blue);
}

.report-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.report-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.report-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.report-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.report-card-action .btn {
    width: 100%;
}

.results-delivered-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin: 3rem auto 0 auto;
    max-width: 1100px;
    text-align: center;
}

.results-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.results-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    margin: 0 auto;
}

.result-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.result-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.result-box p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   SECTION 07: CAPACITAÇÕES E APOIO
   ========================================================================== */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.knowledge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.knowledge-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.knowledge-hours {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.knowledge-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.knowledge-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.knowledge-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.knowledge-action .btn {
    width: 100%;
}

.knowledge-cta-box {
    background: #0a1632;
    color: var(--text-light);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 750px;
}

.cta-icon {
    font-size: 2.2rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-text h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.cta-text p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ==========================================================================
   SECTION 08: EXPERIÊNCIAS E PARCERIAS
   ========================================================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.partner-logo-container {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.partner-logo {
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.35rem;
}

.partner-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.85rem;
}

.partner-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

/* ==========================================================================
   SECTION 09: NOSSA EQUIPE (NO FINAL ANTES DO RODAPÉ)
   ========================================================================== */
.team-group {
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-group-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0 auto 1.75rem auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-blue);
    text-align: center;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.team-member {
    flex: 0 1 210px;
    width: 210px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 3px solid #eff6ff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-member:hover .team-photo {
    border-color: var(--accent-blue);
    transform: scale(1.04);
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.member-role {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    display: inline-block;
}

.role-coordenador { background: #dbeafe; color: #1e40af; }
.role-vice { background: #e0e7ff; color: #4338ca; }
.role-docente { background: #dcfce7; color: #15803d; }
.role-gerente { background: #fef3c7; color: #b45309; }
.role-discente { background: #ede9fe; color: #6d28d9; }
.role-ex { background: #f1f5f9; color: #64748b; }

/* Accordion Ex-Membros */
.ex-members-accordion {
    margin-top: 2rem;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.ex-members-toggle {
    width: 100%;
    background: #f8fafc;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-navy);
    cursor: pointer;
    transition: var(--transition);
}

.ex-members-toggle:hover {
    background: #f1f5f9;
}

.ex-members-panel {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   CONTATAR EQUIPE TÉCNICA (Abaixo de Nossa Equipe - Centralizado)
   ========================================================================== */
.contact-section-box {
    margin: 3.5rem auto 0 auto;
    max-width: 860px;
    text-align: center;
}

.contact-card-centered {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    padding: 2.75rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card-centered:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.contact-icon-large {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.25);
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 1.75rem;
}

.contact-buttons-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   RODAPÉ INSTITUCIONAL
   ========================================================================== */
.site-footer {
    background-color: var(--primary-navy);
    color: #cbd5e1;
    padding-top: 4.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-logo {
    height: 48px;
    border-radius: 6px;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-brand-desc {
    font-size: 0.8rem;
    color: #93c5fd;
}

.footer-summary {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: #94a3b8;
    text-align: justify;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social-links a:hover {
    background: var(--sky-blue);
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--sky-blue);
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav li a {
    color: #cbd5e1;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-nav li a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.footer-institucional-col .footer-nav li {
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.footer-institucional-col .footer-nav li i {
    color: #38bdf8;
    margin-top: 3px;
}

.footer-meta-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: #94a3b8;
}

.footer-bottom-bar {
    background: #060d1f;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

.footer-update-tag {
    color: #38bdf8;
    font-weight: 500;
}

/* ==========================================================================
   MODAL INDIVIDUAL SIMPLIFICADO DO PROCESSO
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 22, 50, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease-in-out;
}

.compact-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    background: #0a1632;
    color: var(--text-light);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title-area {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-tags-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-code {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    background: #2563eb;
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.modal-front-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.modal-process-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
}

.modal-unit {
    font-size: 0.85rem;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 1.75rem;
    color: var(--text-light);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.compact-modal-body {
    padding: 1.75rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-info-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.15rem 1.35rem;
}

.modal-section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Duas Caixas de Acesso em Destaque (Lado a Lado no Desktop, Empilhadas no Mobile) */
.modal-action-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 0.5rem 0;
}

.modal-action-box {
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.box-flowchart {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 2px solid #bfdbfe;
}

.box-knowledge {
    background: linear-gradient(135deg, #f0fdf4, #f8fafc);
    border: 2px solid #bbf7d0;
}

.box-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.box-flowchart .box-icon {
    background: #dbeafe;
    color: var(--primary-blue);
}

.box-knowledge .box-icon {
    background: #dcfce7;
    color: var(--teal-dark);
}

.box-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

.box-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.box-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.box-buttons-row .btn {
    width: 100%;
}

.modal-status-footer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.88rem;
}

.status-footer-label {
    font-weight: 700;
    color: var(--text-secondary);
}

.modal-footer {
    background: #f8fafc;
    padding: 0.85rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   ANIMAÇÕES & MEDIA QUERIES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Responsividade Tablet e Mobile */
@media (max-width: 1024px) {
    .site-header { padding: 0.5rem 0; }
    .mobile-toggle { display: flex; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 22, 50, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem;
        box-shadow: var(--shadow-xl);
    }
    
    .main-nav.open { display: block; }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .hero-title { font-size: 2.2rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-text { align-items: center; }
    .hero-desc-box { text-align: justify; }
    .hero-actions { justify-content: center; }
    .hero-logo { max-width: 320px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.85rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-desc-box { padding: 1.25rem; }
    .hero-actions { grid-template-columns: 1fr; width: 100%; max-width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-logo { max-width: 260px; }
    
    .modal-action-boxes { grid-template-columns: 1fr; }
    .repo-grid { grid-template-columns: 1fr; }
    .models-grid { grid-template-columns: 1fr; }
    .pops-grid { grid-template-columns: 1fr; }
    
    .docs-filter-bar { flex-direction: column; }
    .docs-filter-selects { flex-direction: column; width: 100%; }
    .docs-filter-selects select { width: 100%; }
    
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-container { flex-direction: column; text-align: center; }
    
    .compact-modal { max-height: 95vh; }
    .modal-header { padding: 1rem 1.25rem; }
    .compact-modal-body { padding: 1.25rem; }
}
