/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Allow clicking through container */
}

/* Toast Item */
.toast-notification {
    background: white;
    min-width: 300px;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto; /* Re-enable clicks on toasts */
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.3s forwards ease-out;
    border-left: 5px solid #2185d0; /* Default info color */
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Slide Out Animation */
.toast-notification.hiding {
    animation: slideOut 0.3s forwards ease-in;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Icons */
.toast-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content */
.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #333;
}

.toast-message {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Close Button */
.toast-close {
    cursor: pointer;
    color: #aaa;
    font-size: 1.2rem;
    transition: color 0.2s;
    padding: 5px;
    line-height: 1;
}

.toast-close:hover {
    color: #555;
}

/* Variants */
.toast-success {
    border-left-color: #2ecc71;
}
.toast-success .toast-icon {
    color: #2ecc71;
}

.toast-error {
    border-left-color: #e74c3c;
}
.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-warning {
    border-left-color: #f1c40f;
}
.toast-warning .toast-icon {
    color: #f1c40f;
}

.toast-info {
    border-left-color: #3498db;
}
.toast-info .toast-icon {
    color: #3498db;
}

/* Progress Bar (Optional) */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(0,0,0,0.1);
    width: 100%;
}
.toast-progress-bar {
    height: 100%;
    background-color: currentColor; /* Inherits from text color context if set, or we specify */
    width: 100%;
    /* Animation duration set via JS */
}

/* Specific Progress Colors */
.toast-success .toast-progress-bar { background-color: #2ecc71; }
.toast-error .toast-progress-bar { background-color: #e74c3c; }
.toast-warning .toast-progress-bar { background-color: #f1c40f; }
.toast-info .toast-progress-bar { background-color: #3498db; }
