/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Hide container when empty */
.toast-container:empty {
    display: none;
}

.toast {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.98), rgba(0, 50, 100, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast.toast-success {
    border-color: rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, rgba(0, 50, 30, 0.98), rgba(0, 80, 50, 0.98));
}

.toast.toast-error {
    border-color: rgba(255, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(60, 0, 0, 0.98), rgba(100, 0, 0, 0.98));
}

.toast.toast-warning {
    border-color: rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, rgba(60, 40, 0, 0.98), rgba(100, 70, 0, 0.98));
}

.toast.toast-info {
    border-color: rgba(0, 212, 255, 0.4);
}

.toast-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    color: #fff;
}

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

.toast-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

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

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

.toast.toast-hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

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

/* Progress bar at bottom of toast */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 212, 255, 0.6);
    border-radius: 0 0 12px 12px;
    animation: toastProgress 5s linear forwards;
}

.toast-success .toast-progress {
    background: rgba(0, 255, 136, 0.6);
}

.toast-error .toast-progress {
    background: rgba(255, 68, 68, 0.6);
}

.toast-warning .toast-progress {
    background: rgba(255, 193, 7, 0.6);
}

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