/**
 * SIG-GCM - Sistema Integrado de Gestão da Agente Civil Municipal
 * Estilos Customizados
 * Versão: 2.0
 */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    
    /* Adiciona flexbox para empurrar o rodapé para baixo */
    display: flex;
    flex-direction: column;
}

/* Navbar Customizações */
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Botões */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Formulários */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Tabelas */
.table {
    background-color: white;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
    cursor: pointer;
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    border-radius: 5px;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Login Page */
.min-vh-100 {
    min-height: 100vh;
}

/* Cards de Estatísticas */
.card.text-white h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.card.text-white .card-title {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

/* List Group */
.list-group-item {
    border-radius: 5px;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    transform: translateX(5px);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card.text-white h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .alert {
    animation: fadeIn 0.5s ease;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Utilidades */
.text-justify {
    text-align: justify;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Print Styles */
@media print {
    .navbar, .btn, .card-footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Rodapé Estático no Final da Página (Sticky Footer) */
.footer-fixed {
    position: relative; 
    width: 100%; 
    background-color: #212529; 
    color: white;
    padding: 10px 0;
    z-index: 1030; 
    font-size: 0.85rem;
    margin-top: auto; /* Empurra o rodapé para o final do flex container (body) */
}

/* Estilos para miniaturas de agentes no dashboard */
.agente-mini-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.agente-mini-foto {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0d6efd;
    cursor: pointer;
    transition: transform 0.2s;
}

.agente-mini-foto:hover {
    transform: scale(1.2);
    z-index: 10;
}

.agente-sem-foto {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #6c757d;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.agente-sem-foto:hover {
    transform: scale(1.2);
    z-index: 10;
}
