/* General notification styles */
.notification {
    display: block;
    padding: 20px;
    margin-bottom: 20px; /* Space between notifications */
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    position: fixed; /* Fixed to make it pop over other elements */
    right: 20px; /* Position it on the right side */
    top: 20px; /* Start positioning from the top */
    max-width: 600px; /* Limit the width */
    z-index: 1000; /* Ensure it appears above other elements */
    opacity: 0; /* Initially hidden */
    transform: translateY(-20px); /* Slightly above its position */
    transition: transform 0.3s ease, opacity 0.5s ease; /* Transition for animation */
}

/* Animation for showing the notification */
.notification.show {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Original position */
}

/* Animation for fading out */
.notification.fade-out {
    opacity: 0; /* Fade out */
    transform: translateY(-20px); /* Move it slightly up while fading out */
}

/* Success notification styles */
.notification.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Error notification styles */
.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Close button styles */
.close-btn {
    background: none; /* No background */
    border: none; /* No border */
    color: inherit; /* Inherit color from parent */
    font-size: 1.5rem; /* Font size for visibility */
    cursor: pointer; /* Pointer cursor */
    position: absolute; /* Position it absolutely */
    right: 15px; /* Distance from the right edge */
    top: 15px; /* Distance from the top edge */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    line-height: 1; /* Set line height to adjust vertical alignment */
    transition: color 0.2s ease; /* Transition for hover effect */
}

/* Responsive adjustments for close button */
@media (max-width: 600px) {
    .close-btn {
        font-size: 1.2rem; /* Smaller font size on smaller screens */
        right: 10px; /* Adjust position for smaller screens */
        top: 10px; /* Adjust position for smaller screens */
    }
}

/* Additional responsive styles for the notification */
@media (max-width: 600px) {
    .notification {
        padding: 15px; /* Smaller padding on smaller screens */
        font-size: 1rem; /* Smaller font size on smaller screens */
        max-width: 90%; /* Adjust max-width to fit smaller screens */
        right: 10px; /* Move notification closer to the edge */
        top: 10px; /* Adjust top position for smaller screens */
    }
}
