/* ===== Global Toast Notification System ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    min-width: 320px;
    max-width: 420px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    --accent-color: transparent;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.toast-notification.toast-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast-notification.toast-exit {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
}

.toast-notification.toast-success {
    --accent-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%);
}

.toast-notification.toast-error {
    --accent-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 60%);
}

.toast-notification.toast-warning {
    --accent-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 60%);
}

.toast-notification.toast-info {
    --accent-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 60%);
}

.toast-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 14px 20px;
}

.toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.toast-success .toast-icon-wrap {
    background: #d1fae5;
    color: #10b981;
}

.toast-error .toast-icon-wrap {
    background: #fee2e2;
    color: #ef4444;
}

.toast-warning .toast-icon-wrap {
    background: #fef3c7;
    color: #f59e0b;
}

.toast-info .toast-icon-wrap {
    background: #dbeafe;
    color: #3b82f6;
}

.toast-text {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 2px;
}

.toast-msg {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.toast-msg ul {
    margin: 4px 0 0;
    padding-left: 1.1rem;
}

.toast-msg li {
    margin-bottom: 2px;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.15s ease;
    margin-top: -2px;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.toast-progress {
    height: 3px;
    background: transparent;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    border-radius: 0 2px 2px 0;
    transition: width linear;
}

.toast-success .toast-progress-bar { background: #10b981; }
.toast-error .toast-progress-bar { background: #ef4444; }
.toast-warning .toast-progress-bar { background: #f59e0b; }
.toast-info .toast-progress-bar { background: #3b82f6; }

@media (max-width: 768px) {
    .toast-container {
        top: 12px;
        right: 12px;
    }
    .toast-notification {
        min-width: 260px;
        max-width: calc(100vw - 24px);
    }
}
