/* Estilos específicos para a página da Ouvidoria */

:root {
    --primary-color: #036db3;
    --primary-light: #4a9bd9;
    --primary-dark: #004b8d;
    --secondary-color: #2c3e50;
    --accent-color: #ffffff;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Cores Específicas dos Tipos */
    --color-elogio: #10b981;
    /* Emerald 500 */
    --color-reclamacao: #f59e0b;
    /* Amber 500 */
    --color-sugestao: #8b5cf6;
    /* Violet 500 */
    --color-solicitacao: #3b82f6;
    /* Blue 500 */
    --color-denuncia: #ef4444;
    /* Red 500 */
    --color-acesso: #0ea5e9;
    /* Sky 500 */
    --color-carta: #06b6d4;
    /* Cyan 500 */
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1400px;
    height: 60vh;
    min-height: 500px;
    margin: 0 auto 4rem auto;
    border-radius: 40px;
    background: linear-gradient(120deg, #0b2e4e 0%, #046eb4 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(4, 110, 180, 0.15);
    padding: 0;
}

.logo img {
    height: 50px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    mix-blend-mode: overlay;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 0;
    width: 100%;
    padding: 0;
}

.hero-text {
    max-width: 700px;
    text-align: left;
    margin-right: auto;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #4ddbff;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.highlight-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #4ddbff;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ddbff;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 550px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hero-section {
        border-radius: 20px;
        margin-top: 100px;
        height: auto;
        padding: 4rem 0;
        width: calc(100% - 30px);
    }

    .hero-content {
        padding: 0 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==================== NAV GRID (Tipos de Manifestação) ==================== */
.tipos-manifestacao {
    padding: 2rem 0;
}

.section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-header p {
    color: var(--text-light);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 10px;
}

.nav-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Ensure full height in grid */
}

/* Pseudo elemento para barra lateral colorida */
.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.nav-card:hover::before {
    opacity: 1;
}

.nav-icon {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.nav-card:hover .nav-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-content h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pushes bottom content down if needed */
}

.external-link-indicator {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    /* Aligns to bottom of flex container */
    letter-spacing: 0.5px;
}

.nav-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--text-light);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.nav-card:hover .nav-arrow {
    opacity: 1;
    transform: translateX(0);
    background: #f1f5f9;
    color: var(--primary-color);
}

/* --- Cores Específicas por Tipo --- */

/* Elogio */
.nav-card[data-tipo="Elogio"]::before {
    background: var(--color-elogio);
}

.nav-card[data-tipo="Elogio"] .nav-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-elogio);
}

.nav-card[data-tipo="Elogio"]:hover .nav-icon {
    background: var(--color-elogio);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
}

.nav-card[data-tipo="Elogio"] .external-link-indicator {
    color: var(--color-elogio);
}

.nav-card[data-tipo="Elogio"]:hover .nav-arrow {
    color: var(--color-elogio);
}

/* Reclamação */
.nav-card[data-tipo="Reclamação"]::before {
    background: var(--color-reclamacao);
}

.nav-card[data-tipo="Reclamação"] .nav-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-reclamacao);
}

.nav-card[data-tipo="Reclamação"]:hover .nav-icon {
    background: var(--color-reclamacao);
    color: white;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
}

.nav-card[data-tipo="Reclamação"] .external-link-indicator {
    color: var(--color-reclamacao);
}

.nav-card[data-tipo="Reclamação"]:hover .nav-arrow {
    color: var(--color-reclamacao);
}

/* Sugestão */
.nav-card[data-tipo="Sugestão"]::before {
    background: var(--color-sugestao);
}

.nav-card[data-tipo="Sugestão"] .nav-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-sugestao);
}

.nav-card[data-tipo="Sugestão"]:hover .nav-icon {
    background: var(--color-sugestao);
    color: white;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.25);
}

.nav-card[data-tipo="Sugestão"] .external-link-indicator {
    color: var(--color-sugestao);
}

.nav-card[data-tipo="Sugestão"]:hover .nav-arrow {
    color: var(--color-sugestao);
}

/* Solicitação */
.nav-card[data-tipo="Solicitação"]::before {
    background: var(--color-solicitacao);
}

.nav-card[data-tipo="Solicitação"] .nav-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-solicitacao);
}

.nav-card[data-tipo="Solicitação"]:hover .nav-icon {
    background: var(--color-solicitacao);
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

.nav-card[data-tipo="Solicitação"] .external-link-indicator {
    color: var(--color-solicitacao);
}

.nav-card[data-tipo="Solicitação"]:hover .nav-arrow {
    color: var(--color-solicitacao);
}

/* Denúncia */
.nav-card[data-tipo="Denúncia"]::before {
    background: var(--color-denuncia);
}

.nav-card[data-tipo="Denúncia"] .nav-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-denuncia);
}

.nav-card[data-tipo="Denúncia"]:hover .nav-icon {
    background: var(--color-denuncia);
    color: white;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

.nav-card[data-tipo="Denúncia"] .external-link-indicator {
    color: var(--color-denuncia);
}

.nav-card[data-tipo="Denúncia"]:hover .nav-arrow {
    color: var(--color-denuncia);
}

/* Acesso a Informação */
.nav-card[data-tipo="Acesso a Informação"]::before {
    background: var(--color-acesso);
}

.nav-card[data-tipo="Acesso a Informação"] .nav-icon {
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-acesso);
}

.nav-card[data-tipo="Acesso a Informação"]:hover .nav-icon {
    background: var(--color-acesso);
    color: white;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}

.nav-card[data-tipo="Acesso a Informação"] .external-link-indicator {
    color: var(--color-acesso);
}

.nav-card[data-tipo="Acesso a Informação"]:hover .nav-arrow {
    color: var(--color-acesso);
}

/* Carta de Serviços */
.nav-card[data-tipo="carta-servicos"]::before {
    background: var(--color-carta);
}

.nav-card[data-tipo="carta-servicos"] .nav-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-carta);
}

.nav-card[data-tipo="carta-servicos"]:hover .nav-icon {
    background: var(--color-carta);
    color: white;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.25);
}

.nav-card[data-tipo="carta-servicos"] .external-link-indicator {
    color: var(--color-carta);
}

.nav-card[data-tipo="carta-servicos"]:hover .nav-arrow {
    color: var(--color-carta);
}


/* Toggle Button & Hidden Cards */
.nav-card.hidden {
    display: none;
}

.nav-card.visible-animated {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.btn-toggle {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 109, 179, 0.2);
}

.btn-toggle i {
    transition: transform 0.3s ease;
}

.btn-toggle.expanded i {
    transform: rotate(180deg);
}


/* Relatórios de Gestão */
.relatorios-gestao {
    padding: 5rem 0;
    background-color: white;
    position: relative;
}

.relatorios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Cards Relatórios Modernos */
.relatorio-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Sombra mais difusa e moderna */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none; /* Removed border */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Accent colorido no topo */
.relatorio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: height 0.3s ease;
}

.relatorio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(4, 110, 180, 0.15); /* Sombra azulada suave */
}

.relatorio-card:hover::before {
    height: 8px;
}

.relatorio-header {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column; /* Icon acima do texto */
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.relatorio-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fff0f0 0%, #ffe0e0 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ef4444;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.1);
}

.relatorio-card:hover .relatorio-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.relatorio-info h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.relatorio-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.relatorio-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Empurra para o rodapé do card */
    padding-top: 25px;
    position: relative;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge.disponivel {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.disponivel::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Ano oculto */
.relatorio-ano {
    display: none;
}

.relatorio-actions .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 12px rgba(4, 110, 180, 0.3);
    color: white;
    font-weight: 600;
    margin-top: 20px;
    border: none;
}

.relatorio-actions .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(4, 110, 180, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* Info Contato Modern Cards */
.info-contato {
    padding: 5rem 0;
}

.info-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: white;
}

.info-card:hover::before {
    opacity: 1;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(4, 110, 180, 0.05);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.info-card:hover .info-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(4, 110, 180, 0.25);
}

.info-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.info-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-content p strong {
    color: var(--primary-dark);
    font-weight: 600;
    word-break: break-all;
    font-size: 0.9em;
}

/* Modal and Form tweaks */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 109, 179, 0.1);
}

/* ==================== MODALS ==================== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-content.modal-lg {
    max-width: 900px;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success Modal Specifics */
.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    text-align: center;
    margin-bottom: 20px;
}

.protocolo-info {
    background: #f0fdf4;
    border: 1px dashed #166534;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.protocolo-info h2 {
    color: #15803d;
    font-size: 1.8rem;
    margin: 10px 0 0;
    letter-spacing: 1px;
}