/* Toast Notification Styles */
/* Single source of truth: container controls placement; toast controls look */
.toast-container {
    position: fixed;
    top: 140px; /* place below header */
    right: 20px;
    z-index: 1100; /* above tenant sidebar but below modals */
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none; /* clicks pass through except on toast */
}

/* Adjust toast position for tenant users with sidebar */
@media (min-width: 1024px) {
    body.tenant-user .toast-container {
        right: 320px; /* Account for 280px sidebar + 40px margin */
        z-index: 1100; /* Above sidebar */
        transition: right 0.3s ease-in-out;
    }
    
    body.tenant-user .tenant-sidebar.collapsed + * .toast-container,
    body.tenant-user.sidebar-collapsed .toast-container {
        right: 120px; /* Account for 80px collapsed sidebar + 40px margin */
    }
}

.toast {
    position: relative;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    pointer-events: auto;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-success .toast-content i {
    color: #10b981;
}

.toast-error .toast-content i {
    color: #ef4444;
}

.toast-content span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

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

/* Stacking handled by container gap */
