/* Estilos para a página de Interesses por Cliente */

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card {
    transition: all 0.3s ease;
}

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

.imovel-card {
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.imovel-card.apartamento {
    border-left-color: #28a745;
}

.imovel-card.lote {
    border-left-color: #ffc107;
}

.badge-status {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.1);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .stats-card h3 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Melhorias visuais adicionais */
.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-success th {
    background-color: #d1ecf1 !important;
    color: #0c5460;
}

.table-warning th {
    background-color: #fff3cd !important;
    color: #856404;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.form-control {
    border-left: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Estilo para alertas */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #fab1a0 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #74b9ff 100%);
    color: #0c5460;
}

/* Estilos para cards clicáveis */
.clickable-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clickable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.clickable-card:hover::before {
    left: 100%;
}

.clickable-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

.clickable-card:active {
    transform: translateY(-3px) scale(1.01);
    transition: all 0.1s ease;
}

/* Animação de pulsação para indicar interatividade */
.clickable-card {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    }
    50% { 
        box-shadow: 0 5px 20px rgba(0,0,0,0.15); 
    }
}

/* Efeito específico para cada tipo de card */
.clickable-card.stats-card:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.clickable-card.bg-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%) !important;
}

.clickable-card.bg-warning:hover {
    background: linear-gradient(135deg, #ffca2c 0%, #ffc107 100%) !important;
}

/* Indicador visual de clique */
.clickable-card small {
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clickable-card:hover small {
    opacity: 1;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Offset vertical para modais desta página */
.modal-offset .modal-dialog {
    margin-top: 80px; /* desloca um pouco para baixo */
}

@media (min-height: 900px) {
    .modal-offset .modal-dialog {
        margin-top: 100px;
    }
}