
/* Toast Container - holds multiple toasts */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none; /* Allow clicks through container */
}

/* Individual Toast/Popup - Single Line Design */
.popup {
    display: flex;
    align-items: center;
    position: relative;
    padding: 12px 40px 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    min-width: 300px;
    pointer-events: auto; /* Allow clicks on individual toasts */
    gap: 12px;
}

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

.hidden {
    display: none !important;
}

.close-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: rgba(255, 255, 255, 1);
}

/* Toast Icon */
.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

/* Toast Message */
.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: white;
    font-weight: 500;
}

/* Specific styles for each message type */
.popup.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.popup.success .toast-icon {
    color: white;
}

.popup.error {
    background: linear-gradient(135deg, #F44336 0%, #e53935 100%);
}

.popup.error .toast-icon {
    color: white;
}

.popup.warning {
    background: linear-gradient(135deg, #FFC107 0%, #ffa000 100%);
}

.popup.warning .toast-icon {
    color: white;
}

.popup.info {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
}

.popup.info .toast-icon {
    color: white;
}

/* Responsive */
@media (max-width: 480px) {
    #toast-container {
        right: 10px;
        left: 10px;
        top: 10px;
        max-width: none;
    }
    
    .popup {
        min-width: auto;
        width: 100%;
    }
}
