/* Base Styles */
:root {
    --primary-color: #004d99; /* Azul Corporativo */
    --secondary-color: #007bff; /* Azul Claro para Destaque */
    --accent-color: #28a745; /* Verde para Ações de Sucesso/Destaque */
    --text-color: #333;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #dee2e6;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--primary-color);
    color: var(--card-background);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 1.8rem;
    text-align: center;
}

/* Main Content Layout */
.main-content {
    flex-grow: 1;
    padding: 40px 0;
}

/* Typography and Sections */
h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

h3 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

p {
    margin-bottom: 15px;
}

/* --- Formulário Geral (Usado em denuncia.html e consulta.html) --- */

.form-container {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.form-group legend {
    font-weight: bold;
    color: var(--primary-color);
    padding: 0 10px;
    font-size: 1.1rem;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="datetime-local"] {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea {
    resize: vertical;
}

.field-row {
    display: flex;
    gap: 20px;
}

.field-half {
    flex: 1;
}

/* Radio and Checkbox Groups */
.radio-group, .checkbox-group {
    margin-top: 5px;
    margin-bottom: 15px;
}

.radio-group label, .checkbox-group label {
    display: inline-block;
    font-weight: normal;
    margin-right: 15px;
    cursor: pointer;
}

.radio-group input, .checkbox-group input {
    margin-right: 5px;
}

/* Conditional Fields */
.conditional-fields {
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    margin-top: 10px;
}

/* Disabled Field (Evidências) */
.disabled-field {
    opacity: 0.6;
    pointer-events: none; /* Desabilita clique */
}
.disabled-field small {
    color: var(--danger-color);
    font-weight: bold;
}


/* --- Feedback Messages --- */
.form-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    word-break: break-word;
    white-space: pre-wrap;
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* --- Botões --- */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.btn {
    display: block;
    padding: 15px 25px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--card-background);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    background-color: #218838; 
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--card-background);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.btn-secondary:hover {
    background-color: #0056b3; 
    transform: translateY(-2px);
}

.cancel-btn {
    background-color: rgb(250, 245, 245);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
    padding: 5px;
    border-radius: 10px;
    display: block;
    padding: 5px 5px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.cancel-btn:hover {
    transform: translateY(-2px);
}
.cancel-lnk{text-decoration: none;}
/* Intro Section Specifics (Index Page) */
.intro-section {
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.awareness-section p {
    background-color: #fff3cd; 
    border-left: 5px solid #ffc107; 
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
}

/* Discreet Admin Link */
.admin-link-container {
    text-align: center;
    margin-top: 20px;
}

.admin-link {
    color: #000000; 
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.5; 
    transition: opacity 0.3s;
}

.admin-link:hover {
    opacity: 1;
    color: var(--text-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--border-color);
    text-align: center;
    padding: 15px 0;
    margin-top: auto; 
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}


/* --- Estilos para Tela de Consulta (consulta.html) --- */

.consulta-resultado {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.status-box {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: var(--background-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.status-box p {
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cores dos Status */
.status-badge[data-status="Novo"] { background-color: var(--secondary-color); }
.status-badge[data-status="Em Análise"] { background-color: var(--warning-color); color: var(--text-color); }
.status-badge[data-status="Em Investigação"] { background-color: var(--info-color); }
.status-badge[data-status="Concluído"] { background-color: var(--accent-color); }
.status-badge[data-status="Arquivado"] { background-color: var(--text-color); }

.denuncia-detalhes p {
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--border-color);
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 20px 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    left: 10px;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '•'; /* Marcador visual */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.timeline-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.timeline-content {
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 4px;
    border-left: 5px solid var(--primary-color);
}

.timeline-content h5 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 5px;
}


/* --- Responsiveness (Mobile First) --- */

@media (max-width: 599px) {
    .header h1 {
        font-size: 1.4rem;
    }
    .field-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Ajuste para tablets e telas médias */
@media (min-width: 600px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .action-buttons {
        flex-direction: row; 
        justify-content: center;
        gap: 30px;
    }

    .btn {
        width: 45%; 
    }
}

/* Ajuste para desktops */
@media (min-width: 1024px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .btn {
        width: 300px; 
        padding: 18px 30px;
    }
    
    .timeline::before {
        left: 20px; /* Desloca a linha central */
    }

    .timeline-item {
        padding-left: 40px; /* Ajusta o padding */
    }
    
    .timeline-item::before {
        left: 10px; /* Ajusta o marcador */
    }
}