/* 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: #009f3a;
}

.toast-success .toast-progress-bar {
    background-color: #009f3a;
}

/* .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;
}

/* Toast Actions */
.toast-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.toast-action-btn {
    padding: 6px 14px;
    background: #0a59ac;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(10, 89, 172, 0.2);
}

.toast-action-btn:hover {
    background: #084d96;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(10, 89, 172, 0.3);
}

.toast-action-btn:active {
    transform: translateY(0);
}

.toast-action-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    box-shadow: none;
}

.toast-action-btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
    box-shadow: none;
}

/* 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;
    }
}
