.notification {
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-family: 'OpenDyslexic', Arial, sans-serif;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

/* Fixed notification at top for login/register/forgot-password pages */
body:has(.login-container) .notification,
.notification-top {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    min-width: 300px;
    max-width: 90%;
    margin-bottom: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #e74c3c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}