/* notifications.css */

/* Container for all notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Basic notification styling */
.notification {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-width: 90vw;
    border-left: 5px solid #ccc; /* Default border color */
    background-color: #fff;
    animation: slideIn 0.3s ease-out forwards;
    transform: translateX(110%);
}

/* Animation for showing the notification */
@keyframes slideIn {
    from {
        transform: translateX(110%);
    }
    to {
        transform: translateX(0);
    }
}

/* Animation for hiding the notification */
.notification.exiting {
    animation: slideOut 0.4s ease-in forwards;
}

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

/* Icon styling */
.notification-icon {
    font-size: 1.5em; /* 24px */
    margin-right: 15px;
}

/* Text content wrapper */
.notification-content {
    flex-grow: 1;
}

.notification-content h5 {
    margin: 0 0 5px 0;
    font-size: 1em; /* 16px */
    font-weight: 600;
}

.notification-content p {
    margin: 0;
    font-size: 0.9em; /* 14.4px */
    color: #555;
}

/* Close button */
.notification-close {
    font-size: 1.5em;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

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

/* --- Color Variants --- */

/* Success (Green) */
.notification-success {
    border-left-color: #28a745;
}
.notification-success .notification-icon {
    color: #28a745;
}

/* Error (Red) */
.notification-error {
    border-left-color: #dc3545;
}
.notification-error .notification-icon {
    color: #dc3545;
}

/* Info (Blue) */
.notification-info {
    border-left-color: #17a2b8;
}
.notification-info .notification-icon {
    color: #17a2b8;
}
