/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    /* Allow clicking through container */
}

/* Individual Toast */
.toast-notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    /* Enable clicking on toast */
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    /* border-left removed */
}

.toast-notification.hide {
    animation: slideOut 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Icons */
.toast-icon {
    font-size: 20px;
    margin-top: 2px;
}

/* Content */
.toast-content {
    flex: 1;
}

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

.toast-message {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Close Button */
.toast-close {
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.toast-close:hover {
    color: #333;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: transparent;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    /* background-color set dynamically based on type */
}

/* Types */
/* Types */
/* .toast-success border-left-color removed */

.toast-success .toast-icon {
    color: #22c55e;
}

.toast-success .toast-progress-bar {
    background-color: #22c55e;
}

/* .toast-error border-left-color removed */

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-error .toast-progress-bar {
    background-color: #ef4444;
}

/* .toast-warning border-left-color removed */

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-warning .toast-progress-bar {
    background-color: #f59e0b;
}

/* .toast-info border-left-color removed */

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-info .toast-progress-bar {
    background-color: #3b82f6;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}