/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.98);
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out forwards;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.4;
    height: 40px;
    backdrop-filter: blur(4px);
    transform: translateZ(0);
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.delete {
    border-left-color: #dc3545;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification i {
    font-size: 16px;
    flex-shrink: 0;
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #dc3545;
}

.notification.delete i {
    color: #dc3545;
}

.notification.info i {
    color: #17a2b8;
}

.notification span {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

.notification.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Notification stacking */
.notification + .notification {
    margin-top: 6px;
}

/* For backward compatibility with save-indicator */
.save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.98);
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    z-index: 1000;
    font-size: 14px;
    animation: slideIn 0.3s ease-out forwards;
    color: #333;
    backdrop-filter: blur(4px);
    height: 40px;
    display: flex;
    align-items: center;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
