/* ========================================
   Z-Index Hierarchy (Fixed)
   ======================================== */

/* Navbar */
.navbar {
    z-index: 1000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Sidebar */
.sidebar {
    z-index: 999 !important;
}

/* Modal Backdrop (fundo escuro) */
.modal-backdrop {
    z-index: 1040 !important;
}

/* Modal (conteúdo) - DEVE estar ACIMA do backdrop */
.modal {
    z-index: 1050 !important;
}

/* Loading Overlay */
.loading-overlay {
    z-index: 2000 !important;
}

/* Toast - ACIMA DE TUDO */
.toast {
    position: fixed !important;
    top: 85px !important;
    right: 24px !important;
    bottom: auto !important;
    z-index: 9999 !important;
    background: var(--primary) !important;
    color: white !important;
    padding: 1rem 1.5rem !important;
    border-radius: 12px !important;
    display: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    font-weight: 600 !important;
    animation: slideInFromTop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    pointer-events: auto !important;
    min-width: 250px !important;
    backdrop-filter: blur(10px) !important;
}

.toast.success {
    background: #10b981 !important;
}

.toast.error {
    background: #ef4444 !important;
}

.toast.warning {
    background: #f59e0b !important;
}

.toast.info {
    background: #3b82f6 !important;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

