/* Plataforma de Denúncias - Folha de Estilos Principal */

/* 1. Variáveis e Reset Básico */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #f4f7f9;
    --border-radius: 0.3rem;
    --box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--body-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2. Layout Principal (Container e Grid) */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.col-md-8, .col-md-4, .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}
.justify-content-center {
    justify-content: center !important;
}

.main-content {
    flex: 1;
    padding: 2.5rem 0;
}

/* 3. Header e Footer */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.nav h1 a { color: white; text-decoration: none; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-links li a { color: rgba(255, 255, 255, 0.85); text-decoration: none; padding: 0.5rem 1rem; border-radius: var(--border-radius); transition: all 0.2s ease-in-out; }
.nav-links li a:hover, .nav-links li a.active { color: white; background-color: rgba(255, 255, 255, 0.1); }

.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* 4. Componentes (Cards, Formulários, Botões) */
.card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}
.card-header { padding: 1rem 1.25rem; background-color: var(--light-color); border-bottom: 1px solid #e9ecef; }
.card-body { padding: 1.25rem; }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control, .form-select {
    display: block; width: 100%; box-sizing: border-box;
    padding: 0.6rem 0.75rem; font-size: 1rem;
    border: 1px solid #ced4da; border-radius: var(--border-radius);
}

.btn {
    display: inline-block; padding: 0.6rem 1.2rem; font-size: 1rem;
    font-weight: 400; text-align: center; text-decoration: none;
    cursor: pointer; border: 1px solid transparent; border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
}
.btn-primary { color: #fff; background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background-color: #0069d9; }

/* 5. Uploader de Arquivos (Drag & Drop) */
.file-uploader {
    border: 2px dashed #ccc; padding: 1.5rem; text-align: center; cursor: pointer;
    background-color: var(--light-color); transition: all 0.2s ease-in-out; border-radius: var(--border-radius);
}
.file-uploader:hover, .file-uploader.dragover { border-color: var(--primary-color); background-color: #e9f5ff; }

.file-list-item {
    background-color: #e9ecef; padding: 0.5rem 1rem; border-radius: 5px; margin-top: 5px;
    display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem;
}
.file-list-item img, .file-list-item .file-icon { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; margin-right: 10px; }
.remove-file-btn { cursor: pointer; color: var(--danger-color); font-weight: bold; padding: 5px; font-size: 1.2rem; line-height: 1; }

/* 6. Outros Componentes Específicos */
@keyframes pulse { 0% { color: var(--danger-color); } 50% { color: var(--warning-color); } 100% { color: var(--danger-color); } }
.blinking-text { animation: pulse 2.5s infinite; }

.protocol-display {
    border: 1px dashed #ccc; padding: 1rem; margin-top: 1rem; background: #f8f9fa;
}

.chat-container { border: 1px solid #eee; padding: 1rem; border-radius: 5px; max-height: 400px; overflow-y: auto; background: #f9f9f9; }
.message { margin-bottom: 1rem; padding: 0.75rem; border-radius: 10px; max-width: 80%; word-wrap: break-word; }
.admin-message { background-color: #e1f5fe; margin-left: auto; }
.user-message { background-color: #dcedc8; margin-right: auto; }