/* Toast notification system */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastSlideIn 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.toast.toast-success {
    background: #10b981;
}

.toast.toast-error {
    background: #ef4444;
}

.toast.toast-warning {
    background: #f59e0b;
    color: #1f2937;
}

.toast.toast-info {
    background: #3b82f6;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
    font-size: 16px;
    padding: 0 4px;
}

.toast-close:hover {
    opacity: 1;
}

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

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

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

/* Confirm dialog */
.toast-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-confirm-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.toast-confirm-dialog p {
    margin: 0 0 20px;
    font-size: 15px;
    color: #1f2937;
}

.toast-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.toast-confirm-actions button {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.toast-confirm-actions .btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.toast-confirm-actions .btn-ok {
    background: #3b82f6;
    color: #fff;
}
