/* Imagilire Notifications CSS */

/* Notification Container */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    min-width: 300px;
    background-color: white;
    color: var(--text-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) translateX(-50%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1100;
    display: flex;
    align-items: stretch;
}

.notification.active {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
}

/* Notification Color Bar */
.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}

.notification.success::before {
    background-color: var(--success-color);
}

.notification.error::before {
    background-color: var(--error-color);
}

.notification.info::before, .notification.warning::before {
    background-color: var(--secondary-color);
}

/* Notification Content */
.notification-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    flex-grow: 1;
}

.notification-content i {
    font-size: 24px;
    margin-right: 15px;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--error-color);
}

.notification.info i, .notification.warning i {
    color: var(--secondary-color);
}

.notification-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* Close Button */
.close-notification {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0 15px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.close-notification:hover {
    color: #555;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(20px) translateX(-50%);
        opacity: 0;
    }
    to {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }
    to {
        transform: translateY(-20px) translateX(-50%);
        opacity: 0;
    }
}

/* Mobile Adaptation */
@media (max-width: var(--mobile-breakpoint)) {
    .notification {
        min-width: 250px;
        max-width: 95%;
        bottom: 20px;
    }
    
    .notification-content {
        padding: 12px 15px;
    }
    
    .notification-content i {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .notification-content p {
        font-size: 0.9rem;
    }
}
