.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10050;
    pointer-events: auto;
}

.toast-container-center {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 10050;
    pointer-events: auto;
}

.toast {
    min-width: 320px;
    max-width: 420px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    pointer-events: auto;
    transform: translateY(8px);
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0;
    animation: toastFadeIn 0.25s ease forwards;
    position: relative;
    overflow: hidden;
}

.toast-confirm,
.toast-prompt,
.toast-select {
    min-width: 400px;
    max-width: 500px;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transform: scale(0.95);
    animation: toastPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-confirm .toast-body,
.toast-prompt .toast-body,
.toast-select .toast-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast-confirm .toast-icon,
.toast-prompt .toast-icon,
.toast-select .toast-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    margin-bottom: 8px;
    background: #eff6ff;
    color: #3b82f6;
}

.toast-confirm .toast-title,
.toast-prompt .toast-title,
.toast-select .toast-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.toast-confirm .toast-message,
.toast-prompt .toast-message,
.toast-select .toast-message {
    font-size: 15px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.6;
}

.toast-select .toast-icon {
    background: #fef3c7;
    color: #d97706;
}

.toast-select .toast-title {
    margin-bottom: 8px;
}

.toast-select .toast-message {
    margin-bottom: 24px;
}

.toast-select-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.toast-select-option {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-select-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.toast-select-option:has(input:checked) {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 1px #3b82f6;
}

.toast-select-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-select-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.toast-select-label {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toast-select-desc {
    font-size: 13px;
    color: #64748b;
    padding-left: 24px;
    display: block;
}

.toast-select-warning {
    border-color: #fee2e2;
    background: #fffafa;
}

.toast-select-warning:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.toast-select-warning:has(input:checked) {
    border-color: #ef4444;
    background-color: #fef2f2;
    box-shadow: 0 0 0 1px #ef4444;
}

.toast-select-warning .toast-select-label {
    color: #991b1b;
}

.toast-select-warning .toast-select-desc {
    color: #b91c1c;
}

.toast-confirm .toast-actions,
.toast-prompt .toast-actions,
.toast-select .toast-actions {
    margin-top: 24px;
    padding-top: 0;
    width: 150px;
    display: flex;
    gap: 12px;
    justify-content: stretch;
}

.toast-confirm .toast-action,
.toast-prompt .toast-action,
.toast-select .toast-action {
    flex: 1;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.toast-confirm .toast-input,
.toast-prompt .toast-input {
    font-size: 14px;
    padding: 9px 12px;
}

.toast-prompt .toast-input {
    margin-top: 20px;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    transition: border-color 0.2s;
}

.toast-prompt .toast-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    word-break: break-word;
}

.toast-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.toast-action {
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.toast-action-confirm {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toast-action-confirm:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.toast-action-cancel {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.toast-action-cancel:hover {
    background: #f3f4f6;
    color: #111827;
}

.toast-container-center.fade-out {
    animation: containerFadeOut 0.2s ease forwards;
    pointer-events: none;
}

@keyframes containerFadeOut {
    from {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.4);
    }
    to {
        opacity: 0;
        background-color: rgba(0, 0, 0, 0);
    }
}

@keyframes toastPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.toast-input {
    margin-top: 8px;
    width: 100%;
    border: 1px solid #cbd5f5;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    box-sizing: border-box;
}

.toast-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #334155;
    background: #f1f5f9;
    border-radius: 4px;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: #1a73e8;
    animation: toastProgress linear forwards;
}

.toast-success .toast-progress { background: #22c55e; }
.toast-error .toast-progress { background: #ef4444; }
.toast-warning .toast-progress { background: #f59e0b; }
.toast-info .toast-progress { background: #3b82f6; }

.toast-paused .toast-progress {
    animation-play-state: paused;
}

.toast-success { border-left: 4px solid #22c55e; }
.toast-success .toast-icon { color: #16a34a; background: #dcfce7; }

.toast-error { border-left: 4px solid #ef4444; }
.toast-error .toast-icon { color: #dc2626; background: #fee2e2; }

.toast-warning { border-left: 4px solid #f59e0b; }
.toast-warning .toast-icon { color: #d97706; background: #fef3c7; }

.toast-info { border-left: 4px solid #3b82f6; }
.toast-info .toast-icon { color: #2563eb; background: #dbeafe; }

.toast-exit {
    animation: toastFadeOut 0.22s ease forwards;
}

@keyframes toastFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}