/* Estilos para a página de nova denúncia */

:root {
    --primary: #4e5c9d;
    --secondary: #3498db;
    /* Atualizado para corresponder ao complaint.css */
    --light-bg: #f9fbfd;
    --border: #e0e6eb;
    --text-muted: #6c757d;
    --dark-text: #343a40;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.5;
}

.container.py-3 {
    padding: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

h1.fw-bold {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
}

h1.fw-bold::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

p.text-muted {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    background: #fcfdff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 92, 157, 0.2);
    background: #fff;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#remove-attachment {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
    border-radius: 0 8px 8px 0;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

#remove-attachment:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-text i {
    color: var(--warning);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-check-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.invalid-feedback {
    font-size: 0.85rem;
    color: var(--danger);
}

hr {
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-warning {
    background: var(--warning);
    color: var(--dark-text);
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 92, 157, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.toast.text-bg-danger {
    background: var(--danger) !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast-header {
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
}

.alert.alert-danger {
    background: #fee;
    border: 1px solid #edd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#uploadErrorModal .modal-content {
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

#uploadErrorModal .modal-header {
    background: var(--danger);
    color: #fff;
    border-radius: 10px 10px 0 0;
}

#uploadErrorModal .modal-body {
    padding: 1.5rem;
}

#uploadErrorModal .modal-footer .btn-primary {
    background: var(--primary);
    color: #fff;
}

#uploadErrorModal .modal-footer .btn-primary:hover {
    background: var(--secondary);
}

/* Estilo para o overlay de carregamento */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #4e5d9db0;
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
    backdrop-filter: blur(5px);
}

.loading-overlay-content {
    background: none;
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-overlay p {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    animation: pulseText 1.5s ease-in-out infinite;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

/* Animação de pulsar para o texto */
@keyframes pulseText {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animação de fade-in para o overlay */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animação de rotação para o spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .container.py-3 {
        padding: 1rem;
    }

    h1.fw-bold {
        font-size: 1.6rem;
    }

    .card-body {
        padding: 1rem;
    }

    .col-md-4 {
        margin-bottom: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .loading-overlay p {
        font-size: 1.4rem !important;
    }

    .spinner {
        width: 50px !important;
        height: 50px !important;
        border-width: 6px !important;
    }

    .loading-overlay-content {
        padding: 1.5rem;
    }
}