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

/* Base style for an individual notification */
.notification {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    overflow: hidden; /* Important for the progress bar */
    border-left: 5px solid transparent;
    opacity: 0.95;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

/* Animation for showing the notification */
.notification.show {
    transform: translateX(0);
}

/* Icon styling */
.notification-icon {
    flex-shrink: 0;
    margin-right: 12px;
    width: 24px;
    height: 24px;
}

/* Message text styling */
.notification-message {
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.4;
}

/* Close button styling */
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Progress bar that shows time remaining */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Type-specific styles */
.notification.success {
    background-color: #2d3748; /* Dark Gray-Blue */
    border-left-color: #48bb78; /* Green */
}

.notification.error {
    background-color: #2d3748; /* Dark Gray-Blue */
    border-left-color: #f56565; /* Red */
}

.notification.info {
    background-color: #2d3748; /* Dark Gray-Blue */
    border-left-color: #4299e1; /* Blue */
}
