
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 480px;
    padding: 16px 20px;
    background: var(--dark-card, #141414);
    border: 1px solid var(--dark-border, #2a2a2a);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

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

.toast-success {
    border-left: 4px solid #66BB6A;
}

.toast-success .toast-icon {
    background: rgba(102, 187, 106, 0.2);
    color: #66BB6A;
}

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

.toast-error .toast-icon {
    background: rgba(239, 83, 80, 0.2);
    color: #EF5350;
}

.toast-warning {
    border-left: 4px solid #FFB300;
}

.toast-warning .toast-icon {
    background: rgba(255, 179, 0, 0.2);
    color: #FFB300;
}

.toast-info {
    border-left: 4px solid #29B6F6;
}

.toast-info .toast-icon {
    background: rgba(41, 182, 246, 0.2);
    color: #29B6F6;
}

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

.toast-message {
    color: var(--text, #F4E4C1);
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted, #8B7355);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text, #F4E4C1);
}


.toast-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast-confirm-overlay.show {
    opacity: 1;
}

.toast-confirm-box {
    background: var(--dark-card, #141414);
    border: 1px solid var(--dark-border, #2a2a2a);
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-confirm-box.show {
    transform: scale(1);
    opacity: 1;
}

.toast-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-gold, #D4AF37);
    margin: 0 auto 1.5rem;
}

.toast-confirm-message {
    text-align: center;
    color: var(--text, #F4E4C1);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.toast-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-hover, #1a1a1a);
    border: 1px solid var(--dark-border, #2a2a2a);
    border-radius: 8px;
    color: var(--text, #F4E4C1);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.toast-input:focus {
    outline: none;
    border-color: var(--primary-gold, #D4AF37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.toast-confirm-actions {
    display: flex;
    gap: 12px;
}

.toast-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.toast-btn-cancel {
    background: var(--dark-hover, #1a1a1a);
    border: 1px solid var(--dark-border, #2a2a2a);
    color: var(--text, #F4E4C1);
}

.toast-btn-cancel:hover {
    background: var(--dark-bg, #0a0a0a);
    border-color: #EF5350;
    color: #EF5350;
    transform: translateY(-2px);
}

.toast-btn-confirm {
    background: linear-gradient(135deg, var(--primary-gold, #D4AF37), #FFA500);
    color: var(--dark-bg, #0a0a0a);
    border: none;
}

.toast-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}


@media (max-width: 640px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .toast-confirm-box {
        padding: 1.5rem;
    }

    .toast-confirm-actions {
        flex-direction: column;
    }
}


@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
