/**
 * Beautiful Toast Notification Styles
 * Tesla Indoor Cricket
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 420px;
    background: var(--card-bg, #1F2937);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    color: var(--text-primary, #FFFFFF);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary, #E5E7EB);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #FFFFFF);
}

.toast-progress {
    height: 3px;
    width: 100%;
    background: #10B981;
    position: absolute;
    bottom: 0;
    left: 0;
    transform-origin: left;
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Light theme support */
[data-theme="light"] .toast {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .toast-message {
    color: #111827;
}

[data-theme="light"] .toast-close {
    color: #6B7280;
}

[data-theme="light"] .toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111827;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Animation for multiple toasts */
.toast-container .toast:nth-child(1) {
    animation-delay: 0ms;
}

.toast-container .toast:nth-child(2) {
    animation-delay: 50ms;
}

.toast-container .toast:nth-child(3) {
    animation-delay: 100ms;
}

