/* Estilos específicos para área administrativa */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #990000;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
}

/* Estatísticas */
.stats-section {
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 5px solid #990000;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card.total {
    border-left-color: #990000;
}

.stat-card.pendente {
    border-left-color: #ffc107;
}

.stat-card.analise {
    border-left-color: #17a2b8;
}

.stat-card.concluida {
    border-left-color: #28a745;
}

.stat-card.vencida {
    border-left-color: #dc3545;
}

.stat-card.mes {
    border-left-color: #6f42c1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    background: linear-gradient(135deg, #990000, #cc0000);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #990000;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Seção de Denúncias */
.denuncias-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-title {
    background: linear-gradient(135deg, #990000, #cc0000);
    color: white;
    padding: 25px 30px;
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.table-container {
    padding: 0;
}

.denuncias-list {
    min-height: 300px;
}

/* Tabela */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table th,
.table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #990000;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table td {
    font-size: 14px;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-analise {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-concluida {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Prazo Badges */
.prazo-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.prazo-normal {
    background: #d4edda;
    color: #155724;
}

.prazo-urgente {
    background: #fff3cd;
    color: #856404;
}

.prazo-vencido {
    background: #f8d7da;
    color: #721c24;
}

/* Botões da tabela */
.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 6px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #990000, #cc0000);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    text-align: right;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa;
}

/* Detalhes da Denúncia no Modal */
.denuncia-detalhes {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #990000;
}

.denuncia-detalhes h4 {
    color: #990000;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-row {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-row strong {
    color: #990000;
    font-weight: 600;
    min-width: 120px;
}

.description-box,
.parecer-box {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 8px;
    border-left: 3px solid #990000;
    width: 100%;
    line-height: 1.6;
    font-size: 14px;
}

.parecer-box {
    border-left-color: #28a745;
}

.prazo-info {
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
}

.prazo-info.vencido {
    background: #f8d7da;
    color: #721c24;
}

/* Formulário de Resposta no Modal */
.resposta-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #990000;
}

.resposta-form h4 {
    color: #990000;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resposta-form .form-group {
    margin-bottom: 20px;
}

.resposta-form label {
    color: #990000;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.resposta-form select,
.resposta-form textarea,
.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.resposta-form select:focus,
.resposta-form textarea:focus,
.form-control:focus {
    outline: none;
    border-color: #990000;
    box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.1);
}

.resposta-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Login Section */
.login-section {
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard Section */
.dashboard-section {
    width: 100%;
}

/* Responsive para Admin */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .denuncia-detalhes {
        padding: 15px;
    }
    
    .resposta-form {
        padding: 15px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-row strong {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .section-title {
        padding: 20px;
        font-size: 18px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
}

