@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --font-size-base: 16px;
    --transition-speed: 0.3s;
    --font-family: 'Poppins', sans-serif;
    
    /* Cores principais */
    --primary-color: #0e7a29;
    --secondary-color: #186827;
    --tertiary-color: #37a84c;
    --dark-color: #333333;
    --dark-color2: #525757;
    --light-color: #f8f9fa;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    
    /* Cores para categorias */
    --red: #bc3737;
    --green: #2b8c75;
    --blue: #3a66a2;
    --orange: #e64b30;
    --purple: #632791;
    --yellow: #e78b34;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #f5f7fa;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Header */
.header-area {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-area {
        position: relative; /* Remove o comportamento sticky em dispositivos móveis */
        top: auto;
    }
    
    .header-area .col-md-6.text-end {
        text-align: center !important;
        margin-top: 15px;
    }
    
    .main-banner {
        padding: 50px 0;
    }
    
    .info-section {
        padding: 25px;
    }
    
    .footer-area h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-info li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

.accessibility-tools button {
    margin-left: 5px;
    border-width: 1px;
    padding: 5px 10px;
    font-size: 14px;
    transition: all var(--transition-speed);
}

.accessibility-tools button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Banner Principal */
.main-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
}

/* Conteúdo Principal */
.main-content {
    padding-bottom: 80px;
}

.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Cards de Ação */
.action-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.action-card .card-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 36px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--primary-color);
}

.primary-action .card-icon {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
}

.secondary-action .card-icon {
    background: rgba(46, 204, 113, 0.1);
    color: var(--green);
}

.action-card h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

.action-card p {
    color: #666;
    margin-bottom: 0;
}

/* Cards de Categoria */
.category-card {
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: left;
    box-shadow: var(--box-shadow);
    min-height: 200px; /* Altura fixa padrão para todos os cards */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
    color: white;
    cursor: pointer; /* Indica que o card é clicável */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-card .card-icon {
    position: absolute;
    right: 10px;
    width: 80px;
    height: 80px;
    font-size: 40px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.category-card p {
    margin-bottom: 0;
    font-size: 15px;
    max-width: 80%;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Adicionar um efeito de brilho sutil nos cards */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
}

/* Cores específicas para cada card */
/* Denúncia - Vermelho */
.col-md-4:nth-child(1) .category-card {
    background-color: var(--red);
}

/* Elogio - Verde */
.col-md-4:nth-child(2) .category-card {
    background-color: var(--green);
}

/* Reclamação - Laranja */
.col-md-4:nth-child(3) .category-card {
    background-color: var(--orange);
}

/* Sugestão - Azul */
.col-md-4:nth-child(4) .category-card {
    background-color: var(--blue);
}

/* Dúvida - Roxo */
.col-md-4:nth-child(5) .category-card {
    background-color: var(--purple);
}

/* Solicitação - Amarelo */
.col-md-4:nth-child(6) .category-card {
    background-color: var(--yellow);
}

.category-card h3 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 26px;
    position: relative;
    z-index: 2;
    color: white;
}

.category-card p {
    margin-bottom: 0;
    font-size: 14px;
    position: relative;
    z-index: 2;
    max-width: 80%;
    color: rgba(255, 255, 255, 0.9);
}

/* Ajuste para o link cobrir todo o card */
.category-card .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    content: "";
}

/* Seção de Informações */
.info-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    margin-top: 40px;
}

.info-section h2 {
    color: var(--dark-color);
    font-weight: 700;
}

.info-section p {
    color: #555;
}

/* Footer */
.footer-area {
    background: var(--dark-color2);
    color: white;
    padding: 60px 0 0;
}

.footer-area h5 {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-area h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-info li i {
    margin-right: 10px;
    color: var(--tertiary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

/* Alto Contraste */
body.alto-contraste {
    background-color: #000 !important;
    color: #fff !important;
}

body.alto-contraste .header-area,
body.alto-contraste .action-card,
body.alto-contraste .category-card,
body.alto-contraste .info-section {
    background-color: #222 !important;
    color: #fff !important;
}

body.alto-contraste .main-banner {
    background: #333 !important;
}

body.alto-contraste .footer-area {
    background-color: #111 !important;
}

body.alto-contraste p,
body.alto-contraste h1,
body.alto-contraste h2,
body.alto-contraste h3,
body.alto-contraste h4,
body.alto-contraste h5,
body.alto-contraste h6 {
    color: #fff !important;
}

body.alto-contraste .btn-outline-primary {
    color: #fff;
    border-color: #fff;
}

/* Novas regras para corrigir o problema de contraste */
body.alto-contraste .bg-light {
    background-color: #333 !important;
    color: #fff !important;
}

body.alto-contraste .card-body {
    background-color: #000 !important;
    color: #fff !important;
}


body.alto-contraste .list-group-item {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #555 !important;
}

body.alto-contraste .alert-info {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #3a6d99 !important;
}
body.alto-contraste .alert-info p{
    color: #000 !important;
}

body.alto-contraste a {
    color: #fff !important;
}

body.alto-contraste .btn-primary {
    color: #000 !important;
    background-color: #fff !important;
}
body.alto-contraste .btn-primary:hover {
    color: #fff !important;
    background-color: #333 !important;
}

body.alto-contraste a:hover {
    color: #80bfff !important;
}

body.alto-contraste .form-text {
    color: #ccc !important;
}

body.alto-contraste .badge.bg-warning {
    background-color: #856404 !important;
    color: #fff !important;
}

body.alto-contraste .badge.bg-success {
    background-color: #155724 !important;
    color: #fff !important;
}

body.alto-contraste .badge.bg-info {
    background-color: #0c5460 !important;
    color: #fff !important;
}
body.alto-contraste .bg-white {
    background-color: #000000 !important;
}



.category-card .card-icon.red {
    background: var(--red);
    box-shadow: 0 5px 15px rgba(191, 53, 40, 0.2);
}

.category-card .card-icon.green {
    background: var(--green);
    box-shadow: 0 5px 15px rgba(0, 102, 52, 0.2);
}

.category-card .card-icon.blue {
    background: var(--blue);
    box-shadow: 0 5px 15px rgba(13, 51, 178, 0.2);
}

.category-card .card-icon.orange {
    background: var(--orange);
    box-shadow: 0 5px 15px rgba(254, 76, 46, 0.2);
}

.category-card .card-icon.purple {
    background: var(--purple);
    box-shadow: 0 5px 15px rgba(92, 28, 140, 0.2);
}

.category-card .card-icon.yellow {
    background: var(--yellow);
    box-shadow: 0 5px 15px rgba(255, 148, 50, 0.2);
}

/* Garantir que todos os elementos respondam ao ajuste de tamanho de fonte */
.font-scaled * {
    transition: font-size 0.3s ease;
}

/* Estilos para o formulário de manifestação */
.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.step-section {
    position: relative;
    padding-bottom: 2rem;
}

/* Estilos para o Dropzone */
.dropzone {
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    background: white;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.dropzone:hover {
    border-color: var(--tertiary-color);
    background-color: rgba(14, 122, 41, 0.03);
}

.dropzone .dz-message {
    margin: 0;
}

.dropzone .dz-preview .dz-image {
    border-radius: 8px;
}

/* Estilos adicionais para corrigir a sobreposição da mensagem de erro */
.dropzone .dz-preview .dz-error-message {
    top: 150px !important; /* Posiciona a mensagem abaixo do arquivo */
    left: 0 !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 5px !important;
}

/* Corrigir a direção da seta */
.dropzone .dz-preview .dz-error-message:after {
    bottom: auto !important;
    top: -6px !important;
    border-bottom-width: 6px !important;
    border-top-width: 0 !important;
    border-top-color: transparent !important;
    border-bottom-color: #be2626 !important;
}

.dropzone .dz-preview .dz-remove {
    position: relative !important;
    z-index: 20 !important;
    margin-top: 5px !important;
    font-weight: bold !important;
}

/* Estilo para arquivos com erro */
.dropzone .dz-preview.dz-error {
    position: relative;
}

.dropzone .dz-preview.dz-error .dz-error-message {
    display: none;
}

.dropzone .dz-preview.dz-error:hover .dz-error-message {
    display: block;
}

/* Estilos para a página de confirmação */
.protocolo-numero {
    letter-spacing: 1px;
    color: var(--primary-color);
}

.confirmation-icon {
    display: inline-block;
    background-color: rgba(25, 135, 84, 0.1);
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
}

/* Estilos para botões e links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--secondary-color)!important;
    border-color: var(--secondary-color)!important;
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Adicionar um efeito de brilho sutil nos cards */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
}

/* Cores específicas para cada card */
/* Denúncia - Vermelho */
.col-md-4:nth-child(1) .category-card {
    background-color: var(--red);
}

/* Elogio - Verde */
.col-md-4:nth-child(2) .category-card {
    background-color: var(--green);
}

/* Reclamação - Laranja */
.col-md-4:nth-child(3) .category-card {
    background-color: var(--orange);
}

/* Sugestão - Azul */
.col-md-4:nth-child(4) .category-card {
    background-color: var(--blue);
}

/* Dúvida - Roxo */
.col-md-4:nth-child(5) .category-card {
    background-color: var(--purple);
}

/* Solicitação - Amarelo */
.col-md-4:nth-child(6) .category-card {
    background-color: var(--yellow);
}

.category-card h3 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 26px;
    position: relative;
    z-index: 2;
    color: white;
}

.category-card p {
    margin-bottom: 0;
    font-size: 14px;
    position: relative;
    z-index: 2;
    max-width: 80%;
    color: rgba(255, 255, 255, 0.9);
}

/* Ajuste para o link cobrir todo o card */
.category-card .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    content: "";
}

/* Seção de Informações */
.info-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    margin-top: 40px;
}

.info-section h2 {
    color: var(--dark-color);
    font-weight: 700;
}

.info-section p {
    color: #555;
}

/* Footer */
.footer-area {
    background: var(--dark-color2);
    color: white;
    padding: 60px 0 0;
}

.footer-area h5 {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-area h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-info li i {
    margin-right: 10px;
    color: var(--tertiary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

/* Alto Contraste */
body.alto-contraste {
    background-color: #000 !important;
    color: #fff !important;
}

body.alto-contraste .header-area,
body.alto-contraste .action-card,
body.alto-contraste .category-card,
body.alto-contraste .info-section {
    background-color: #222 !important;
    color: #fff !important;
}

body.alto-contraste .main-banner {
    background: #333 !important;
}

body.alto-contraste .footer-area {
    background-color: #111 !important;
}

body.alto-contraste p,
body.alto-contraste h1,
body.alto-contraste h2,
body.alto-contraste h3,
body.alto-contraste h4,
body.alto-contraste h5,
body.alto-contraste h6 {
    color: #fff !important;
}

body.alto-contraste .btn-outline-primary {
    color: #fff;
    border-color: #fff;
}

/* Novas regras para corrigir o problema de contraste */
body.alto-contraste .bg-light {
    background-color: #333 !important;
    color: #fff !important;
}

body.alto-contraste .card-body {
    background-color: #000 !important;
    color: #fff !important;
}


body.alto-contraste .list-group-item {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #555 !important;
}

body.alto-contraste .alert-info {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #3a6d99 !important;
}
body.alto-contraste .alert-info p{
    color: #000 !important;
}

body.alto-contraste a {
    color: #fff !important;
}

body.alto-contraste .btn-primary {
    color: #000 !important;
    background-color: #fff !important;
}
body.alto-contraste .btn-primary:hover {
    color: #fff !important;
    background-color: #333 !important;
}

body.alto-contraste a:hover {
    color: #80bfff !important;
}

body.alto-contraste .form-text {
    color: #ccc !important;
}

body.alto-contraste .badge.bg-warning {
    background-color: #856404 !important;
    color: #fff !important;
}

body.alto-contraste .badge.bg-success {
    background-color: #155724 !important;
    color: #fff !important;
}

body.alto-contraste .badge.bg-info {
    background-color: #0c5460 !important;
    color: #fff !important;
}

.category-card .card-icon.red {
    background: var(--red);
    box-shadow: 0 5px 15px rgba(191, 53, 40, 0.2);
}

.category-card .card-icon.green {
    background: var(--green);
    box-shadow: 0 5px 15px rgba(0, 102, 52, 0.2);
}

.category-card .card-icon.blue {
    background: var(--blue);
    box-shadow: 0 5px 15px rgba(13, 51, 178, 0.2);
}

.category-card .card-icon.orange {
    background: var(--orange);
    box-shadow: 0 5px 15px rgba(254, 76, 46, 0.2);
}

.category-card .card-icon.purple {
    background: var(--purple);
    box-shadow: 0 5px 15px rgba(92, 28, 140, 0.2);
}

.category-card .card-icon.yellow {
    background: var(--yellow);
    box-shadow: 0 5px 15px rgba(255, 148, 50, 0.2);
}

/* Garantir que todos os elementos respondam ao ajuste de tamanho de fonte */
.font-scaled * {
    transition: font-size 0.3s ease;
}

/* Estilos para o formulário de manifestação */
.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.step-section {
    position: relative;
    padding-bottom: 2rem;
}

/* Estilos para o Dropzone */
.dropzone {
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    background: white;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.dropzone:hover {
    border-color: var(--tertiary-color);
    background-color: rgba(14, 122, 41, 0.03);
}

.dropzone .dz-message {
    margin: 0;
}

.dropzone .dz-preview .dz-image {
    border-radius: 8px;
}

/* Estilos adicionais para corrigir a sobreposição da mensagem de erro */
.dropzone .dz-preview .dz-error-message {
    top: 150px !important; /* Posiciona a mensagem abaixo do arquivo */
    left: 0 !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 5px !important;
}

/* Corrigir a direção da seta */
.dropzone .dz-preview .dz-error-message:after {
    bottom: auto !important;
    top: -6px !important;
    border-bottom-width: 6px !important;
    border-top-width: 0 !important;
    border-top-color: transparent !important;
    border-bottom-color: #be2626 !important;
}

.dropzone .dz-preview .dz-remove {
    position: relative !important;
    z-index: 20 !important;
    margin-top: 5px !important;
    font-weight: bold !important;
}

/* Estilo para arquivos com erro */
.dropzone .dz-preview.dz-error {
    position: relative;
}

.dropzone .dz-preview.dz-error .dz-error-message {
    display: none;
}

.dropzone .dz-preview.dz-error:hover .dz-error-message {
    display: block;
}

/* Estilos para a página de confirmação */
.protocolo-numero {
    letter-spacing: 1px;
    color: var(--primary-color);
}

.confirmation-icon {
    display: inline-block;
    background-color: rgba(25, 135, 84, 0.1);
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
}
