/* static/css/components/ui_toast.css */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.uplay-toast {
    min-width: 280px;
    max-width: 350px;
    padding: 16px 20px;
    border-radius: 8px;
    background-color: var(--bg-surface, #1e1e1e);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

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

.uplay-toast.success { border-left: 4px solid var(--success, #28a745); }
.uplay-toast.error { border-left: 4px solid var(--danger, #dc3545); }
.uplay-toast.warning { border-left: 4px solid var(--warning, #ffc107); }

.uplay-toast .toast-icon { font-size: 1.2rem; }
.uplay-toast.success .toast-icon { color: var(--success, #28a745); }
.uplay-toast.error .toast-icon { color: var(--danger, #dc3545); }
.uplay-toast.warning .toast-icon { color: var(--warning, #ffc107); }

.uplay-toast-body { flex: 1; line-height: 1.4; }
.uplay-toast-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}
.uplay-toast-close:hover { color: #fff; }

/* Modal Premium Animations */
.modal-async-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-async-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal-async-container {
    background: var(--bg-surface, #1e1e1e);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.modal-async-backdrop.show .modal-async-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.card-remove-transition {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s ease;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
