/* CSS customizado para o SaaS Imobiliário */

/* Variáveis CSS serão definidas dinamicamente pelo PHP no header */

/* Melhorias gerais */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Sidebar */
.sidebar {
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar .nav-link i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

/* Tabelas */
.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Botões */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Cards de estatísticas */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stats-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Formulários */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

/* Alertas customizados */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Loading spinner */
.spinner-custom {
    color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
}

/* Utilitários */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

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

/* Sistema de Notificações Moderno */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    min-width: 300px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.toast .toast-body {
    font-size: 0.9rem;
}

.toast .bi {
    font-size: 1.1rem;
}

/* Modal de notificação customizado */
#notification-modal .modal-content {
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

#notification-modal .modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

#notification-modal .modal-title i {
    font-size: 1.2rem;
}

/* Loading overlay */
#loading-overlay {
    backdrop-filter: blur(2px);
}

#loading-overlay .bg-white {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    min-width: 200px;
}

/* Animações suaves */
.toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsividade dos toasts */
@media (max-width: 576px) {
    .toast-container {
        left: 1rem !important;
        right: 1rem !important;
        top: 1rem !important;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}
