/* Estilos personalizados para o modal do perfil do morador - VERSÃO DISCRETA */

.modal-lg {
    max-width: 800px;
}

.modal-header.bg-primary {
    background: #007bff !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.modal-header h5 {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.modal-header .close {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    background: #f8f9fa;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-image-container img {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}

.profile-image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.status-indicator {
    margin-top: 10px;
}

.status-indicator .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 15px;
    background: #28a745;
    border: none;
}

.status-indicator .badge i {
    font-size: 0.6rem;
    margin-right: 4px;
}

.morador-info {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.morador-info h4 {
    color: #007bff;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
    display: block;
}

.info-item p {
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.info-item a {
    color: #007bff;
    transition: color 0.3s ease;
    text-decoration: none;
}

.info-item a:hover {
    color: #0056b3;
    text-decoration: none;
}

.info-item i {
    transition: color 0.3s ease;
    color: #007bff;
    margin-right: 5px;
}

.info-item:hover i {
    color: #0056b3;
}

/* Botões de ação discretos */
.actions-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.actions-section h6 {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.actions-section h6 i {
    margin-right: 8px;
    color: #007bff;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.action-btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.btn-outline-primary.action-btn {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-outline-primary.action-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
}

.btn-outline-success.action-btn {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-outline-success.action-btn:hover {
    background: #1e7e34;
    border-color: #1e7e34;
    color: white;
}

.btn-outline-info.action-btn {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-outline-info.action-btn:hover {
    background: #117a8b;
    border-color: #117a8b;
    color: white;
}

.btn-outline-warning.action-btn {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-outline-warning.action-btn:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #212529;
}

.btn-outline-secondary.action-btn {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-outline-secondary.action-btn:hover {
    background: #545b62;
    border-color: #545b62;
    color: white;
}

.btn-outline-danger.action-btn {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-outline-danger.action-btn:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

/* Modal footer discreto */
.modal-footer {
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
}

.modal-footer .btn {
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Responsividade discreta */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .profile-image-container img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-btn {
        min-height: 35px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .morador-info {
        padding: 1rem;
    }
    
    .actions-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .col-md-4, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .profile-image-container {
        margin-bottom: 15px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        min-height: 32px;
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-header h5 {
        font-size: 1.1rem;
    }
}

/* Animações discretas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-body {
    animation: fadeInUp 0.4s ease-out;
}

/* Melhorias no scroll */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 